Skip to content

Commit e2cbb1f

Browse files
committed
more
1 parent 7449a24 commit e2cbb1f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

routers/web/repo/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ func HomeWithFeedCheck(ctx *context.Context) {
796796
ctx.Redirect(ctx.Repo.RepoLink+defaultURI, http.StatusMovedPermanently)
797797
}
798798

799-
// CodeHome render repository home page
799+
// CodeHome render repository code unit page
800800
func CodeHome(ctx *context.Context) {
801801
checkHomeCodeViewable(ctx)
802802
if ctx.Written() {

routers/web/web.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,10 +1581,10 @@ func registerRoutes(m *web.Router) {
15811581
m.Get("/atom/branch/*", context.RepoRefByType(context.RepoRefBranch), feedEnabled, feed.RenderBranchFeed)
15821582

15831583
m.Group("/src", func() {
1584-
m.Get("/branch/*", context.RepoRefByType(context.RepoRefBranch), repo.Home)
1585-
m.Get("/tag/*", context.RepoRefByType(context.RepoRefTag), repo.Home)
1586-
m.Get("/commit/*", context.RepoRefByType(context.RepoRefCommit), repo.Home)
1587-
m.Get("/*", context.RepoRefByType(context.RepoRefLegacy), repo.Home) // "/*" route is deprecated, and kept for backward compatibility
1584+
m.Get("/branch/*", context.RepoRefByType(context.RepoRefBranch), repo.CodeHome)
1585+
m.Get("/tag/*", context.RepoRefByType(context.RepoRefTag), repo.CodeHome)
1586+
m.Get("/commit/*", context.RepoRefByType(context.RepoRefCommit), repo.CodeHome)
1587+
m.Get("/*", context.RepoRefByType(context.RepoRefLegacy), repo.CodeHome) // "/*" route is deprecated, and kept for backward compatibility
15881588
}, repo.SetEditorconfigIfExists)
15891589

15901590
m.Get("/forks", context.RepoRef(), repo.Forks)

0 commit comments

Comments
 (0)