From d2165a589004224a2b4db4091c06b149a68199fe Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 3 Mar 2017 16:53:59 +0800 Subject: [PATCH] fix compare button failed when there is no fork repos (#1104) --- routers/repo/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "", ""