summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-08-12 18:34:57 +0800
committerGitHub <noreply@github.com>2020-08-12 12:34:57 +0200
commit4e1c7cc4efb537ed6cb35537f059f58cf402a9d0 (patch)
treea7695ce17b008a68765564ce0392aa708b145aee
parentc18b0529ede8087530da3d585fb41457978d043b (diff)
downloadgitea-4e1c7cc4efb537ed6cb35537f059f58cf402a9d0.tar.gz
gitea-4e1c7cc4efb537ed6cb35537f059f58cf402a9d0.zip
Fix ignored login on compare (#12476)
-rw-r--r--routers/routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index d739f0b6ca..34157ea5ba 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())