diff options
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r-- | pkg/gui/files_panel.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index f2ed2f3a3..341849061 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -729,6 +729,10 @@ func (gui *Gui) pushFiles() error { // if we have pullables we'll ask if the user wants to force push currentBranch := gui.currentBranch() + if currentBranch == nil { + // need to wait for branches to refresh + return nil + } if currentBranch.Pullables == "?" { // see if we have this branch in our config with an upstream |