Skip to content

Commit 7461f14

Browse files
committed
Revert "_git_status(): use different cache dirs"
This reverts commit 8985759.
1 parent 5915602 commit 7461f14

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

dvc/dependency/repo.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,8 @@ def _make_repo(self, **overrides):
5050
yield repo
5151

5252
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-
with self._make_repo(
58-
cache_dir=os.path.join(cache_dir, "new"), rev_lock=None
59-
) as new_repo:
53+
with self._make_repo() as old_repo:
54+
with self._make_repo(rev_lock=None) as new_repo:
6055
old_path = os.path.join(old_repo.root_dir, self.def_path)
6156
new_path = os.path.join(new_repo.root_dir, self.def_path)
6257
file_unchanged = filecmp.cmp(old_path, new_path, shallow=False)

0 commit comments

Comments
 (0)