all repos

mugit @ 03f90340bfdf9f0625be5d94489a0033fb4db150

🐮 git server that your cow will love
1 files changed, 3 insertions(+), 1 deletions(-)
ui: /repo.git/something should be 404
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) } }