Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Use merge reference instead of head (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkorotkov authored Sep 22, 2022
1 parent 6093bc7 commit 3180069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ func (executor *Executor) CloneRepository(
return false
}

refSpec := fmt.Sprintf("+refs/pull/%s/head:refs/remotes/origin/pull/%[1]s", pr_number)
refSpec := fmt.Sprintf("+refs/pull/%s/merge:refs/remotes/origin/pull/%[1]s", pr_number)
logUploader.Write([]byte(fmt.Sprintf("\nFetching %s...\n", refSpec)))
fetchOptions := &git.FetchOptions{
RemoteName: remoteConfig.Name,
Expand Down

0 comments on commit 3180069

Please sign in to comment.