diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-11 23:22:09 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-11 23:30:30 +1100 |
commit | 12b84307acd67c93122d1fb971effb9700524592 (patch) | |
tree | 8ba62a274804a85c78898fa11dd2e6797893b9bc /pkg/gui/branches_panel.go | |
parent | 6843741d9e86bee57c96023a0c66e08cd43b3474 (diff) |
specify upstream when pushing a branch for the first timev0.10.4
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 5cf440909..23aa17a26 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -207,7 +207,7 @@ func (gui *Gui) handleCheckoutBranch(branchName string) error { } func (gui *Gui) handleCheckoutByName(g *gocui.Gui, v *gocui.View) error { - gui.createPromptPanel(g, v, gui.Tr.SLocalize("BranchName")+":", func(g *gocui.Gui, v *gocui.View) error { + gui.createPromptPanel(g, v, gui.Tr.SLocalize("BranchName")+":", "", func(g *gocui.Gui, v *gocui.View) error { return gui.handleCheckoutBranch(gui.trimmedContent(v)) }) return nil @@ -221,7 +221,7 @@ func (gui *Gui) handleNewBranch(g *gocui.Gui, v *gocui.View) error { "branchName": branch.Name, }, ) - gui.createPromptPanel(g, v, message, func(g *gocui.Gui, v *gocui.View) error { + gui.createPromptPanel(g, v, message, "", func(g *gocui.Gui, v *gocui.View) error { if err := gui.GitCommand.NewBranch(gui.trimmedContent(v)); err != nil { return gui.createErrorPanel(g, err.Error()) } |