Update working_dir.go (#4048)

fix mergeAgain function for when the PR is created from a fork
This commit is contained in:
Alan Bover
2023-12-13 16:06:04 +01:00
committed by GitHub
parent bcd91960db
commit da72b8366f

View File

@@ -294,7 +294,7 @@ func (w *FileWorkspace) mergeAgain(c wrappedGitContext) error {
}
// Reset branch as if it was cloned again
if err := w.wrappedGit(c, "reset", "--hard", fmt.Sprintf("refs/remotes/head/%s", c.pr.BaseBranch)); err != nil {
if err := w.wrappedGit(c, "reset", "--hard", fmt.Sprintf("refs/remotes/origin/%s", c.pr.BaseBranch)); err != nil {
return err
}