diff options
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r-- | pkg/gui/files_panel.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index aa2f78447..30d0cb8b9 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -736,12 +736,11 @@ func (gui *Gui) push(opts pushOpts) error { } go utils.Safe(func() { err := gui.GitCommand.WithSpan(gui.Tr.Spans.Push).Push(commands.PushOpts{ - Force: opts.force, - UpstreamRemote: opts.upstreamRemote, - UpstreamBranch: opts.upstreamBranch, - SetUpstream: opts.setUpstream, - PromptUserForCredential: gui.promptUserForCredential, - }) + Force: opts.force, + UpstreamRemote: opts.upstreamRemote, + UpstreamBranch: opts.upstreamBranch, + SetUpstream: opts.setUpstream, + }, gui.promptUserForCredential) if err != nil && !opts.force && strings.Contains(err.Error(), "Updates were rejected") { forcePushDisabled := gui.UserConfig.Git.DisableForcePushing |