There's no straight way to support direct url to files in git repos unless we do some kind of magic.
Currently, --show-url fails with:
➜ dvc get https://github.com/schacon/cowsay install.sh --show-url
ERROR: failed to show url {} - URL 'https://github.com/schacon/cowsay' is not a dvc repository.
Similarly, dvc.api.get_url:
> import dvc.api
> dvc.api.get_url("install.sh", repo="https://github.com/schacon/cowsay")
UrlNotDvcRepoError: URL 'https://github.com/schacon/cowsay' is not a dvc repository.
Not clear how what it should show.
This issue is just opened for discussion.
But, one idea was to use https://raw.github.com/username/project/master/file.txt kind of URL if it's a GitHub repo.
@skshetry , I would way for someone to request this :sweat_smile:
Good suggestion, showing the _raw_ URL would work, but I'm not sure how useful would it be.
Most helpful comment
@skshetry , I would way for someone to request this :sweat_smile:
Good suggestion, showing the _raw_ URL would work, but I'm not sure how useful would it be.