summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-03-03 16:53:59 +0800
committerGitHub <noreply@github.com>2017-03-03 16:53:59 +0800
commitd2165a589004224a2b4db4091c06b149a68199fe (patch)
tree9c20c2fc79ac45d828dd5f4d401d81d4b6ce90ff /routers
parent28a5bc313a36d761a020ee26f1e011f91f36cbb2 (diff)
downloadgitea-d2165a589004224a2b4db4091c06b149a68199fe.tar.gz
gitea-d2165a589004224a2b4db4091c06b149a68199fe.zip
fix compare button failed when there is no fork repos (#1104)
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index f518c9edca..3629c1330e 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -466,7 +466,7 @@ func ParseCompareInfo(ctx *context.Context) (*models.User, *models.Repository, *
return nil, nil, nil, nil, "", ""
}
headBranch = headInfos[1]
-
+ isSameRepo = headUser.ID == ctx.Repo.Owner.ID
} else {
ctx.Handle(404, "CompareAndPullRequest", nil)
return nil, nil, nil, nil, "", ""