diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 21:25:39 +1000 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2020-08-23 11:30:29 +0000 |
commit | 0f7003d939a969920ffdb5f2d28fca2fd0eb7f65 (patch) | |
tree | bb245de541583ea37e9a656d16689b55035402de /pkg/gui/files_panel.go | |
parent | d2d88fe64e1fb3b831b283c56294271323bcade1 (diff) |
allow spamming the p key
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r-- | pkg/gui/files_panel.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index c4798c854..f983f5033 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -475,6 +475,9 @@ func (gui *Gui) pullFiles(opts PullFilesOptions) error { } func (gui *Gui) pullWithMode(mode string, opts PullFilesOptions) error { + gui.State.FetchMutex.Lock() + defer gui.State.FetchMutex.Unlock() + err := gui.GitCommand.Fetch( commands.FetchOptions{ PromptUserForCredential: gui.promptUserForCredential, |