diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-11 21:18:38 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-12 18:47:16 +1000 |
commit | fcd5aea04e9799f8cf078b4fe4c6b242a8c9b474 (patch) | |
tree | d889d51ca64db12ea8044a39d356b7c197b553de /pkg/gui/gui.go | |
parent | 1c0da2967c50d6c8992adddf7c94ad2a4e5451e2 (diff) |
support multiple modes of git pull
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 0d039de0b..52e24e298 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -501,12 +501,12 @@ func (gui *Gui) startBackgroundFetch() { if !isNew { time.After(60 * time.Second) } - err := gui.fetch(gui.g, gui.g.CurrentView(), false) + err := gui.fetch(false) if err != nil && strings.Contains(err.Error(), "exit status 128") && isNew { _ = gui.createConfirmationPanel(gui.g, gui.g.CurrentView(), true, gui.Tr.SLocalize("NoAutomaticGitFetchTitle"), gui.Tr.SLocalize("NoAutomaticGitFetchBody"), nil, nil) } else { gui.goEvery(time.Second*60, gui.stopChan, func() error { - err := gui.fetch(gui.g, gui.g.CurrentView(), false) + err := gui.fetch(false) return err }) } |