Skip to content

Commit

Permalink
Update working_dir.go (runatlantis#4048)
Browse files Browse the repository at this point in the history
fix mergeAgain function for when the PR is created from a fork
  • Loading branch information
alanbover authored and ijames-gc committed Feb 13, 2024
1 parent 166da89 commit 6dc182e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/events/working_dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,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
}

Expand Down

0 comments on commit 6dc182e

Please sign in to comment.