Skip to content

Commit

Permalink
fix(git): write back to custom git branch failed by rejected push: ti…
Browse files Browse the repository at this point in the history
…p of your current branch is behind (argoproj-labs#882)

Signed-off-by: Cheng Fang <cfang@redhat.com>
  • Loading branch information
chengfang authored Oct 4, 2024
1 parent 720f495 commit fb8b39d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/argocd/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func commitChangesGit(app *v1alpha1.Application, wbc *WriteBackConfig, changeLis
if err != nil {
return err
}
err = gitC.Push("origin", pushBranch, false)
err = gitC.Push("origin", pushBranch, pushBranch != checkOutBranch)
if err != nil {
return err
}
Expand Down

0 comments on commit fb8b39d

Please sign in to comment.