Skip to content

Commit

Permalink
tree: use cache.tree to check if cache file exists (iterative#4244)
Browse files Browse the repository at this point in the history
Continuing iterative#4050 This issue was found in iterative#4242
  • Loading branch information
efiop authored Jul 19, 2020
1 parent a077135 commit 9bdbe27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dvc/tree/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9bdbe27

Please sign in to comment.