mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
fix: Normalize current working directory in ignored_file_raw
method
This commit is contained in:
parent
4d0934f0a8
commit
b6994aacee
1 changed files with 2 additions and 2 deletions
|
@ -307,9 +307,9 @@ class GitRepo:
|
|||
def ignored_file_raw(self, fname):
|
||||
if self.subtree_only:
|
||||
fname_path = Path(self.normalize_path(fname))
|
||||
cwd_path = Path(self.normalize_path(Path.cwd()))
|
||||
cwd_path = Path.cwd().resolve().relative_to(Path(self.root).resolve())
|
||||
|
||||
if cwd_path not in fname_path.parents:
|
||||
if cwd_path not in fname_path.parents and fname_path != cwd_path:
|
||||
return True
|
||||
|
||||
if not self.aider_ignore_file or not self.aider_ignore_file.is_file():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue