summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-19 01:43:24 +0700
committerShulhan <ms@kilabit.info>2023-11-19 20:55:38 +0700
commit9c37aa4b23dac9d7e363c1bb660ea4fea7be9219 (patch)
tree40fb7e843147e5532e3fdf79703b6b9c72073003
parent67975b6392cb6045179d2e15e16befb985c606dd (diff)
downloadawwan-9c37aa4b23dac9d7e363c1bb660ea4fea7be9219.tar.xz
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.
-rw-r--r--http_server.go2
1 files changed, 1 insertions, 1 deletions
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)`,