tree: use cache.tree to check if cache file exists (#4244)

Continuing #4050 This issue was found in #4242
This commit is contained in:
Ruslan Kuprieiev
2020-07-19 20:21:25 +03:00
committed by GitHub
parent a077135d76
commit 9bdbe279dd
+3 -1
View File
@@ -271,7 +271,9 @@ class BaseTree:
if (
hash_
and self.is_dir_hash(hash_)
and not tree.exists(self.cache.tree.hash_to_path_info(hash_))
and not self.cache.tree.exists(
self.cache.tree.hash_to_path_info(hash_)
)
):
hash_ = None