mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
fix normlize_path logic
This commit is contained in:
parent
4e5e9b4a1a
commit
768d7af32e
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue