diff --git a/dvc/output/local.py b/dvc/output/local.py index 752d8bf09..76fa01ab7 100644 --- a/dvc/output/local.py +++ b/dvc/output/local.py @@ -73,9 +73,9 @@ class LocalOutput(BaseOutput): if os.path.isabs(self.def_path): return False - if self.repo and not self.path_info.isin(self.repo.root_dir): - return False - return True + return self.repo and path_isin( + os.path.realpath(self.path_info), self.repo.root_dir + ) def dumpd(self): ret = super().dumpd()