Skip to content

Commit 9bdbe27

Browse files
authored
tree: use cache.tree to check if cache file exists (#4244)
Continuing #4050 This issue was found in #4242
1 parent a077135 commit 9bdbe27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dvc/tree/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ def get_hash(self, path_info, tree=None, **kwargs):
271271
if (
272272
hash_
273273
and self.is_dir_hash(hash_)
274-
and not tree.exists(self.cache.tree.hash_to_path_info(hash_))
274+
and not self.cache.tree.exists(
275+
self.cache.tree.hash_to_path_info(hash_)
276+
)
275277
):
276278
hash_ = None
277279

0 commit comments

Comments
 (0)