mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-14 09:00:32 +00:00
Fix bug
This commit is contained in:
parent
968b2c5dc1
commit
e895298aba
@ -728,7 +728,7 @@ func SetMerged(ctx context.Context, pr *issues_model.PullRequest, mergedCommitID
|
||||
|
||||
// update merge ref, this is necessary to ensure pr.MergedCommitID can be used to do diff operations even
|
||||
// if the repository rebased/force-pushed and the pull request's merge commit is no longer in the history
|
||||
if err := git.UpdateRef(ctx, pr.BaseRepo.RepoPath(), pr.GetGitMergeRefName(), pr.MergedCommitID); err != nil {
|
||||
if err := git.UpdateRef(ctx, pr.Issue.Repo.RepoPath(), pr.GetGitMergeRefName(), pr.MergedCommitID); err != nil {
|
||||
return false, fmt.Errorf("UpdateRef: %w", err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user