Skip to content

Commit

Permalink
Restore force push behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperMalachowski committed Oct 18, 2024
1 parent f89b4fd commit a575442
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/github/bumper/bumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func gitPush(remote, remoteBranch, baseBranch string, repo *git.Repository, auth
refSpecString := fmt.Sprintf("+%s:refs/heads/%s", localRef.Name(), remoteBranch)
logrus.Infof("Pushing changes using %s refspec", refSpecString)
err = repo.Push(&git.PushOptions{
Force: true,
RemoteName: forkRemoteName,
RefSpecs: []config.RefSpec{
config.RefSpec(refSpecString),
Expand Down

0 comments on commit a575442

Please sign in to comment.