Skip to content

api/get: local repo with custom rev is not supported #3179

@skshetry

Description

@skshetry
import dvc.api

dvc.api.get_url("file", repo=".", rev="HEAD")

throws following error:

AssertionError: Custom revision is not supported for local repo

Similarly, issue exists with dvc get --show-url (introduced by #3156):

➜ dvc get . foo --rev=HEAD@{5.days.ago} --show-url
ERROR: unexpected error - Custom revision is not supported for local repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequesting a new featurep2-mediumMedium priority, should be done, but less important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions