We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5915602 commit 7461f14Copy full SHA for 7461f14
dvc/dependency/repo.py
@@ -50,13 +50,8 @@ def _make_repo(self, **overrides):
50
yield repo
51
52
def _git_status(self):
53
- cache_dir = self.repo.cache.local.cache_dir
54
- with self._make_repo(
55
- cache_dir=os.path.join(cache_dir, "old")
56
- ) as old_repo:
57
58
- cache_dir=os.path.join(cache_dir, "new"), rev_lock=None
59
- ) as new_repo:
+ with self._make_repo() as old_repo:
+ with self._make_repo(rev_lock=None) as new_repo:
60
old_path = os.path.join(old_repo.root_dir, self.def_path)
61
new_path = os.path.join(new_repo.root_dir, self.def_path)
62
file_unchanged = filecmp.cmp(old_path, new_path, shallow=False)
0 commit comments