fix: Handle additional Git errors in repo check

This commit is contained in:
Paul Gauthier 2024-10-07 12:52:25 -07:00
parent 3146d285bf
commit c24ec7f230

View file

@ -57,7 +57,7 @@ def guessed_wrong_repo(io, git_root, fnames, git_dname):
try:
check_repo = Path(GitRepo(io, fnames, git_dname).root).resolve()
except FileNotFoundError:
except (OSError,) + ANY_GIT_ERROR:
return
# we had no guess, rely on the "true" repo result