fix compare button failed when there is no fork repos (#1104)

tokarchuk/v1.17
Lunny Xiao 8 years ago committed by GitHub
parent 28a5bc313a
commit d2165a5890
  1. 2
      routers/repo/pull.go

@ -466,7 +466,7 @@ func ParseCompareInfo(ctx *context.Context) (*models.User, *models.Repository, *
return nil, nil, nil, nil, "", "" return nil, nil, nil, nil, "", ""
} }
headBranch = headInfos[1] headBranch = headInfos[1]
isSameRepo = headUser.ID == ctx.Repo.Owner.ID
} else { } else {
ctx.Handle(404, "CompareAndPullRequest", nil) ctx.Handle(404, "CompareAndPullRequest", nil)
return nil, nil, nil, nil, "", "" return nil, nil, nil, nil, "", ""

Loading…
Cancel
Save