fix normlize_path logic

This commit is contained in:
Paul Gauthier 2024-08-06 09:38:51 -03:00
parent 4e5e9b4a1a
commit 768d7af32e

View file

@ -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