From 4d0934f0a8cc6ae9088ffe60b47e18dcbabeff9d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 6 Aug 2024 10:01:23 -0300 Subject: [PATCH] fix subtree logic for windows --- aider/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/repo.py b/aider/repo.py index f9b7c1525..e0cf98fdd 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -307,7 +307,7 @@ 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().relative_to(self.root))) + cwd_path = Path(self.normalize_path(Path.cwd())) if cwd_path not in fname_path.parents: return True