mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
fix: Handle OSError in get_rel_repo_dir method for edge cases
This commit is contained in:
parent
733b11b7d4
commit
153021efcf
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ class GitRepo:
|
|||
def get_rel_repo_dir(self):
|
||||
try:
|
||||
return os.path.relpath(self.repo.git_dir, os.getcwd())
|
||||
except ValueError:
|
||||
except (ValueError, OSError):
|
||||
return self.repo.git_dir
|
||||
|
||||
def get_commit_message(self, diffs, context):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue