From 768d7af32e8cdd31da3dafd119b201f48eae3aaa Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 6 Aug 2024 09:38:51 -0300 Subject: [PATCH] fix normlize_path logic --- aider/repo.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aider/repo.py b/aider/repo.py index a3e8d542e..f9b7c1525 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -267,11 +267,7 @@ class GitRepo: if res: return res - path = Path(self.root) / path - path = PurePosixPath(path) - path = path.relative_to(self.root) - - path = str(path) + path = str(Path(PurePosixPath((Path(self.root) / path).relative_to(self.root)))) self.normalized_path[orig_path] = path return path