mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
fix: Ensure path_in_repo function handles empty path
This commit is contained in:
parent
243be27eb8
commit
2a4527a5af
1 changed files with 2 additions and 0 deletions
|
@ -354,6 +354,8 @@ class GitRepo:
|
|||
def path_in_repo(self, path):
|
||||
if not self.repo:
|
||||
return
|
||||
if not path:
|
||||
return
|
||||
|
||||
tracked_files = set(self.get_tracked_files())
|
||||
return self.normalize_path(path) in tracked_files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue