diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-03 16:53:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-03 16:53:59 +0800 |
commit | d2165a589004224a2b4db4091c06b149a68199fe (patch) | |
tree | 9c20c2fc79ac45d828dd5f4d401d81d4b6ce90ff /routers | |
parent | 28a5bc313a36d761a020ee26f1e011f91f36cbb2 (diff) | |
download | gitea-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.go | 2 |
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, "", "" |