1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

support opening lazygit outside a git directory

This commit is contained in:
Jesse Duffield
2020-08-16 22:49:37 +10:00
parent db826b3c87
commit 4f4bb40ea6
3 changed files with 35 additions and 9 deletions

View File

@ -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()
}