mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: simplify error handling for tracked files count
This commit is contained in:
parent
303a314c5e
commit
2999c64435
2 changed files with 4 additions and 11 deletions
|
@ -246,10 +246,10 @@ class GitRepo:
|
|||
return diffs
|
||||
|
||||
def get_tracked_files(self):
|
||||
try:
|
||||
if not self.repo:
|
||||
return []
|
||||
if not self.repo:
|
||||
return []
|
||||
|
||||
try:
|
||||
try:
|
||||
commit = self.repo.head.commit
|
||||
except ValueError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue