From 2761dbb0962846f503fb26785f57c3929ed21b1e Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Sun, 12 Nov 2023 23:35:27 +0300 Subject: [PATCH] fix for files from subdirectories --- gitea/gitea.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/gitea.go b/gitea/gitea.go index 92a837e..2034435 100644 --- a/gitea/gitea.go +++ b/gitea/gitea.go @@ -54,7 +54,7 @@ func (c *Client) Open(user, path string) (fs.File, error) { parts := strings.Split(strings.TrimLeft(path, "/"), "/") log.Printf("parts: %d #%v", len(parts), parts) - if len(parts) > 1 { + if len(parts) > 1 && !strings.Contains(parts[0], ".") { repo = parts[0] filepath = strings.Join(parts[1:], "/") } else {