Skip to content

Commit

Permalink
fix: handle git errors when getting tracked files
Browse files Browse the repository at this point in the history
  • Loading branch information
fry69 committed Sep 7, 2024
1 parent 2eae373 commit 7a5a616
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aider/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ def get_tracked_files(self):
commit = self.repo.head.commit
except ValueError:
commit = None
except ANY_GIT_ERROR as err:
self.io.tool_error(f"Unable to get tracked files: {err}")

files = set()
if commit:
Expand Down

0 comments on commit 7a5a616

Please sign in to comment.