From 9c37aa4b23dac9d7e363c1bb660ea4fea7be9219 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 19 Nov 2023 01:43:24 +0700 Subject: all: fix excludes on HTTP server related to .git The HTTP server should excludes ".git" directory only, not the other files, like .gitignore or .gitconfig. --- http_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http_server.go') diff --git a/http_server.go b/http_server.go index a96f28d..96b73dc 100644 --- a/http_server.go +++ b/http_server.go @@ -59,7 +59,7 @@ func newHttpServer(aww *Awwan, address string) (httpd *httpServer, err error) { var memfsBaseOpts = &memfs.Options{ Root: aww.BaseDir, Excludes: []string{ - `.*/\.git`, + `.*/\.git$`, `node_modules`, `vendor`, `.*\.(bz|bz2|gz|iso|jar|tar|xz|zip)`, -- cgit v1.3