Skip to content

Commit 38d865e

Browse files
committed
use head repo id
1 parent 8bee7fc commit 38d865e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func setMergeTarget(ctx *context.Context, pull *issues_model.PullRequest) {
166166
ctx.Data["BaseTarget"] = pull.BaseBranch
167167
headBranchLink := ""
168168
if pull.Flow == issues_model.PullRequestFlowGithub {
169-
b, err := git_model.GetBranch(ctx, ctx.Repo.Repository.ID, pull.HeadBranch)
169+
b, err := git_model.GetBranch(ctx, pull.HeadRepoID, pull.HeadBranch)
170170
switch {
171171
case err == nil:
172172
if !b.IsDeleted {

0 commit comments

Comments
 (0)