Skip to content

Commit

Permalink
dvc: use HashInfo to interact with cache (iterative#4506)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Sep 1, 2020
1 parent 5650060 commit fc32168
Show file tree
Hide file tree
Showing 23 changed files with 182 additions and 167 deletions.
2 changes: 1 addition & 1 deletion dvc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_url(path, repo=None, rev=None, remote=None):
raise UrlNotDvcRepoError(_repo.url) # pylint: disable=no-member
out = _repo.find_out_by_relpath(path)
remote_obj = _repo.cloud.get_remote(remote)
return str(remote_obj.tree.hash_to_path_info(out.checksum))
return str(remote_obj.tree.hash_to_path_info(out.hash_info.value))


def open( # noqa, pylint: disable=redefined-builtin
Expand Down
Loading

0 comments on commit fc32168

Please sign in to comment.