Skip to content

Commit d2165a5

Browse files
authored
fix compare button failed when there is no fork repos (#1104)
1 parent 28a5bc3 commit d2165a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ func ParseCompareInfo(ctx *context.Context) (*models.User, *models.Repository, *
466466
return nil, nil, nil, nil, "", ""
467467
}
468468
headBranch = headInfos[1]
469-
469+
isSameRepo = headUser.ID == ctx.Repo.Owner.ID
470470
} else {
471471
ctx.Handle(404, "CompareAndPullRequest", nil)
472472
return nil, nil, nil, nil, "", ""

0 commit comments

Comments
 (0)