added tests, fixed bug

This commit is contained in:
Paul Gauthier 2023-10-18 10:31:45 -07:00
parent 9725b236a3
commit 583c3285ec
2 changed files with 41 additions and 0 deletions

View file

@ -202,6 +202,9 @@ class GitRepo:
if not self.aider_ignore_file:
return fnames
if not Path(self.aider_ignore_file).is_file():
return fnames
with open(self.aider_ignore_file, "r") as f:
ignore_spec = pathspec.PathSpec.from_lines("gitwildmatch", f)