diff --git a/dvc/tree/base.py b/dvc/tree/base.py index 3b8a0f58ff..f860dcecdf 100644 --- a/dvc/tree/base.py +++ b/dvc/tree/base.py @@ -271,7 +271,9 @@ def get_hash(self, path_info, tree=None, **kwargs): 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