Skip to content

Commit 191c89c

Browse files
committed
Fix bug
1 parent 9744887 commit 191c89c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/pull/merge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ func SetMerged(ctx context.Context, pr *issues_model.PullRequest, mergedCommitID
728728

729729
// update merge ref, this is necessary to ensure pr.MergedCommitID can be used to do diff operations even
730730
// if the repository rebased/force-pushed and the pull request's merge commit is no longer in the history
731-
if err := git.UpdateRef(ctx, pr.BaseRepo.RepoPath(), pr.GetGitMergeRefName(), pr.MergedCommitID); err != nil {
731+
if err := git.UpdateRef(ctx, pr.Issue.Repo.RepoPath(), pr.GetGitMergeRefName(), pr.MergedCommitID); err != nil {
732732
return false, fmt.Errorf("UpdateRef: %w", err)
733733
}
734734

0 commit comments

Comments
 (0)