summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLanre Adelowo <adelowomailbox@gmail.com>2018-08-12 01:20:33 +0100
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-08-11 20:20:33 -0400
commit3422077a89553595730c3fd396a29279a4cbafa0 (patch)
treec25ac437f2ffb91856daac1484227bdd1047f9c8 /routers
parent7fbdd4f2ac6a363302fcc9c966ef8b267fb65f9e (diff)
downloadgitea-3422077a89553595730c3fd396a29279a4cbafa0.tar.gz
gitea-3422077a89553595730c3fd396a29279a4cbafa0.zip
make sure to set pr split view (#4617)
Signed-off-by: Lanre Adelowo <yo@lanre.wtf>
Diffstat (limited to 'routers')
-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 c108eb3ff2..cc36829ef5 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -564,7 +564,7 @@ func RegisterRoutes(m *macaron.Macaron) {
}, reqRepoWriter, context.RepoRef(), context.CheckAnyUnit(models.UnitTypeIssues, models.UnitTypePullRequests))
m.Combo("/compare/*", repo.MustAllowPulls, repo.SetEditorconfigIfExists).
- Get(repo.CompareAndPullRequest).
+ Get(repo.SetDiffViewStyle, repo.CompareAndPullRequest).
Post(bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost)
m.Group("", func() {