all repos — legit @ 9b97b3b20997fb28d11043555c0c7815bbd63334

legit - simple git web interface in go (fork)

Merge branch 'rawfix' into nilix
Iris Lightshard nilix@nilfm.cc
commit

9b97b3b20997fb28d11043555c0c7815bbd63334

parent

151f060913e5e432e52f7da82ea6673be236877c

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M routes/handler.goroutes/handler.go

@@ -42,7 +42,7 @@ mux.HandleFunc("/", d.Index, "GET")

mux.HandleFunc("/static/:file", d.ServeStatic, "GET") mux.HandleFunc("/:name", d.Multiplex, "GET", "POST") mux.HandleFunc("/:name/tree/:ref/...", d.RepoTree, "GET") - mux.HandleFunc("/:name/blob/raw/:ref/...", d.ServeStaticInRepo, "GET") + mux.HandleFunc("/:name/raw/:ref/...", d.ServeStaticInRepo, "GET") mux.HandleFunc("/:name/blob/:ref/...", d.FileContent, "GET") mux.HandleFunc("/:name/log/:ref", d.Log, "GET") mux.HandleFunc("/:name/commit/:ref", d.Diff, "GET")
M routes/util.goroutes/util.go

@@ -28,7 +28,7 @@ func transformRelativeURLs(html, repoName, mainBranch string) string {

return strings.ReplaceAll( html, "=\"./", - fmt.Sprintf("=\"/%s/blob/raw/%s/", repoName, mainBranch)) + fmt.Sprintf("=\"/%s/raw/%s/", repoName, mainBranch)) } func (d *deps) isIgnored(name string) bool {