diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 22:49:37 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 22:59:58 +1000 |
commit | 4f4bb40ea689925c24b2663c3b642393c7c62fe8 (patch) | |
tree | 9367e56c10f2a536abf20eb8ea6c09ee268ef7dd /pkg/gui/layout.go | |
parent | db826b3c8795e47e3471ab76bc4bcb131892c224 (diff) |
support opening lazygit outside a git directory
Diffstat (limited to 'pkg/gui/layout.go')
-rw-r--r-- | pkg/gui/layout.go | 7 |
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() } |