fix subtree logic for windows

This commit is contained in:
Paul Gauthier 2024-08-06 10:01:23 -03:00
parent 535fdfff35
commit 4d0934f0a8

View file

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