mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
Worktrees should not be filtered out
But non-git directories should
This commit is contained in:
@ -110,7 +110,7 @@ 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 {
|
||||
if _, err := os.Stat(filepath.Join(repo, ".git")); err != nil {
|
||||
continue
|
||||
}
|
||||
newRepos = append(newRepos, repo)
|
||||
|
Reference in New Issue
Block a user