summaryrefslogtreecommitdiffstats
path: root/pkg/gui/files_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-09 00:33:39 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-09 00:39:04 +1000
commitd5504fa5d0d4e0312e1b27b8dbe3c6c664395a31 (patch)
tree8d9987e258df6c69343ea5e410ec7a02db1bde14 /pkg/gui/files_panel.go
parent273aba38d403660127508a1453253100ad802668 (diff)
potentially fix credentials issuev0.27.2
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r--pkg/gui/files_panel.go4
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