diff --git a/routers/routes/routes.go b/routers/routes/routes.go index d739f0b6ca5d..34157ea5ba51 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -713,7 +713,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/:id", repo.MilestoneIssuesAndPulls) }, reqRepoIssuesOrPullsReader, context.RepoRef()) m.Combo("/compare/*", repo.MustBeNotEmpty, reqRepoCodeReader, repo.SetEditorconfigIfExists). - Get(repo.SetDiffViewStyle, repo.CompareDiff). + Get(ignSignIn, repo.SetDiffViewStyle, repo.CompareDiff). Post(reqSignIn, context.RepoMustNotBeArchived(), reqRepoPullsReader, repo.MustAllowPulls, bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost) }, context.RepoAssignment(), context.UnitTypes())