mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
Validate recent repo before blindly opening it
This commit is contained in:
committed by
Jesse Duffield
parent
658a6b239b
commit
a955dbcfd7
@ -110,6 +110,9 @@ func newRecentReposList(recentRepos []string, currentRepo string) (bool, []strin
|
||||
newRepos := []string{currentRepo}
|
||||
for _, repo := range recentRepos {
|
||||
if repo != currentRepo {
|
||||
if _, err := os.Stat(repo); err != nil {
|
||||
continue
|
||||
}
|
||||
newRepos = append(newRepos, repo)
|
||||
} else {
|
||||
isNew = false
|
||||
|
Reference in New Issue
Block a user