diff --git a/routers/web/web.go b/routers/web/web.go index bf9bb9be6e..b23ab738bf 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -1743,7 +1743,7 @@ func registerRoutes(m *web.Route) { m.Post("/sync_fork", context.RepoMustNotBeArchived(), repo.MustBeNotEmpty, reqRepoCodeWriter, repo.SyncFork) }, ignSignIn, context.RepoAssignment, context.UnitTypes()) - m.Post("/{username}/{reponame}/lastcommit/*", ignSignIn, context.RepoAssignment, context.UnitTypes(), context.RepoRefByType(context.RepoRefCommit), reqRepoCodeReader, repo.LastCommit) + m.Get("/{username}/{reponame}/lastcommit/*", ignSignIn, context.RepoAssignment, context.UnitTypes(), context.RepoRefByType(context.RepoRefCommit), reqRepoCodeReader, repo.LastCommit) m.Group("/{username}/{reponame}", func() { if !setting.Repository.DisableStars { diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index cc583d18c7..038c3d6d3b 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -1,4 +1,4 @@ -