diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-19 01:43:24 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-19 20:55:38 +0700 |
| commit | 9c37aa4b23dac9d7e363c1bb660ea4fea7be9219 (patch) | |
| tree | 40fb7e843147e5532e3fdf79703b6b9c72073003 /http_server.go | |
| parent | 67975b6392cb6045179d2e15e16befb985c606dd (diff) | |
| download | awwan-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.
Diffstat (limited to 'http_server.go')
| -rw-r--r-- | http_server.go | 2 |
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)`, |
