summaryrefslogtreecommitdiffstats
path: root/pkg/gui/layout.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-16 22:49:37 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-16 22:59:58 +1000
commit4f4bb40ea689925c24b2663c3b642393c7c62fe8 (patch)
tree9367e56c10f2a536abf20eb8ea6c09ee268ef7dd /pkg/gui/layout.go
parentdb826b3c8795e47e3471ab76bc4bcb131892c224 (diff)
support opening lazygit outside a git directory
Diffstat (limited to 'pkg/gui/layout.go')
-rw-r--r--pkg/gui/layout.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/gui/layout.go b/pkg/gui/layout.go
index b09a6a400..a9720f249 100644
--- a/pkg/gui/layout.go
+++ b/pkg/gui/layout.go
@@ -402,6 +402,13 @@ func (gui *Gui) onInitialViewsCreation() error {
gui.getBranchesView().Context = "local-branches"
gui.getCommitsView().Context = "branch-commits"
+ if gui.showRecentRepos {
+ if err := gui.handleCreateRecentReposMenu(); err != nil {
+ return err
+ }
+ gui.showRecentRepos = false
+ }
+
return gui.loadNewRepo()
}