mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
fix subtree logic for windows
This commit is contained in:
parent
535fdfff35
commit
4d0934f0a8
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ class GitRepo:
|
||||||
def ignored_file_raw(self, fname):
|
def ignored_file_raw(self, fname):
|
||||||
if self.subtree_only:
|
if self.subtree_only:
|
||||||
fname_path = Path(self.normalize_path(fname))
|
fname_path = Path(self.normalize_path(fname))
|
||||||
cwd_path = Path(self.normalize_path(Path.cwd().relative_to(self.root)))
|
cwd_path = Path(self.normalize_path(Path.cwd()))
|
||||||
|
|
||||||
if cwd_path not in fname_path.parents:
|
if cwd_path not in fname_path.parents:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue