mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
fix: Handle additional Git-related errors in GitRepo.list_files
This commit is contained in:
parent
73e7d7bd2a
commit
abf6a9db2e
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ class GitRepo:
|
||||||
commit = self.repo.head.commit
|
commit = self.repo.head.commit
|
||||||
except ValueError:
|
except ValueError:
|
||||||
commit = None
|
commit = None
|
||||||
except ANY_GIT_ERROR as err:
|
except (OSError,) + ANY_GIT_ERROR as err:
|
||||||
self.io.tool_error(f"Unable to list files in git repo: {err}")
|
self.io.tool_error(f"Unable to list files in git repo: {err}")
|
||||||
self.io.tool_output("Is your git repo corrupted?")
|
self.io.tool_output("Is your git repo corrupted?")
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue