diff options
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, |