1 files changed,
3 insertions(+),
1 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-02-15 16:48:03 +0200
Change ID:
wtkzkxmkkrvtyykyoltsnotmvzxssvxy
Parent:
6e228d9
M
internal/handlers/git.go
@@ -24,8 +24,10 @@ if path == "info/refs" && r.Method == "GET" && r.URL.RawQuery == "service=git-upload-pack" {
h.infoRefs(w, r) } else if path == "git-upload-pack" && r.Method == "POST" { h.uploadPack(w, r) - } else if r.Method == "GET" { + } else if r.Method == "GET" && path == "" { h.repoIndex(w, r) + } else { + h.write404(w, nil) } }