From 8f6757cc7bd15ed77477013f8fe32bd32a14b29d Mon Sep 17 00:00:00 2001 From: James-REANNZ <74022501+James-REANNZ@users.noreply.github.com> Date: Thu, 26 Aug 2021 17:12:51 +1200 Subject: [PATCH] web: correctly handle go-get pages for repository roots (#6598) Fixes regression in go-get handling introduced in #6318. --- internal/cmd/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/web.go b/internal/cmd/web.go index 09c173f40..c4ceda174 100644 --- a/internal/cmd/web.go +++ b/internal/cmd/web.go @@ -611,10 +611,10 @@ func runWeb(c *cli.Context) error { m.Get("/compare/:before([a-z0-9]{40})\\.\\.\\.:after([a-z0-9]{40})", repo.MustBeNotBare, context.RepoRef(), repo.CompareDiff) }, ignSignIn, context.RepoAssignment()) m.Group("/:username/:reponame", func() { - m.Get("", context.ServeGoGet(), repo.Home) + m.Get("", repo.Home) m.Get("/stars", repo.Stars) m.Get("/watchers", repo.Watchers) - }, ignSignIn, context.RepoAssignment(), context.RepoRef()) + }, context.ServeGoGet(), ignSignIn, context.RepoAssignment(), context.RepoRef()) // ***** END: Repository ***** // **********************