Skip to content

Commit d8282b7

Browse files
authored
use local config instead of push options
1 parent dab026f commit d8282b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎internal/git/gitops.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func (d *defaultOps) Push(remote string, branches []string, force, atomic bool)
291291
}
292292
// Send the "pull.stacked" push option on force pushes, falling back to a
293293
// plain push for remotes that don't support push options.
294-
withOpt := append([]string{"push", "-o", "pull.stacked"}, args[1:]...)
294+
withOpt := append([]string{"-c", "push.pushOption=pull.stacked", "push"}, args[1:]...)
295295
cmd, err := d.command(withOpt...)
296296
if err != nil {
297297
return err

0 commit comments

Comments
 (0)