diff options
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r-- | pkg/gui/remotes_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go index 2d0827592..e310cebe7 100644 --- a/pkg/gui/remotes_panel.go +++ b/pkg/gui/remotes_panel.go @@ -161,9 +161,9 @@ func (gui *Gui) handleFetchRemote(g *gocui.Gui, v *gocui.View) error { gui.State.FetchMutex.Lock() defer gui.State.FetchMutex.Unlock() - if err := gui.GitCommand.FetchRemote(remote.Name); err != nil { - return err - } + // TODO: test this + err := gui.GitCommand.FetchRemote(remote.Name, gui.promptUserForCredential) + gui.handleCredentialsPopup(err) return gui.refreshSidePanels(refreshOptions{scope: []int{BRANCHES, REMOTES}}) }) |