fix: disallow cloning of ignored repos Fixes #56
1 file changed, 5 insertions(+), 0 deletions(-)
changed files
M routes/handler.go → routes/handler.go
@@ -17,6 +17,11 @@ w.Write([]byte("no pushing allowed!")) return } + if d.isIgnored(r.PathValue("name")) { + d.Write404(w) + return + } + if path == "info/refs" && r.URL.RawQuery == "service=git-upload-pack" && r.Method == "GET" {