Revert "_git_status(): use different cache dirs"

This reverts commit 8985759d66.
This commit is contained in:
Wojciech Baranowski
2019-12-15 18:14:38 +02:00
parent 59156021de
commit 7461f14845
+2 -7
View File
@@ -50,13 +50,8 @@ class DependencyREPO(DependencyLOCAL):
yield repo
def _git_status(self):
cache_dir = self.repo.cache.local.cache_dir
with self._make_repo(
cache_dir=os.path.join(cache_dir, "old")
) as old_repo:
with self._make_repo(
cache_dir=os.path.join(cache_dir, "new"), rev_lock=None
) as new_repo:
with self._make_repo() as old_repo:
with self._make_repo(rev_lock=None) as new_repo:
old_path = os.path.join(old_repo.root_dir, self.def_path)
new_path = os.path.join(new_repo.root_dir, self.def_path)
file_unchanged = filecmp.cmp(old_path, new_path, shallow=False)