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 48bf449 commit 8985759Copy full SHA for 8985759
dvc/dependency/repo.py
@@ -50,8 +50,13 @@ def _make_repo(self, **overrides):
50
yield repo
51
52
def _git_status(self):
53
- with self._make_repo() as old_repo:
54
- with self._make_repo(rev_lock=None) as new_repo:
+ cache_dir = self.repo.cache.local.cache_dir
+ 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:
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