Skip to content

get: handle non-DVC repositories #3089

@shcheklein

Description

@shcheklein

Even though #2977 solved this for dvc import, it looks like it is still not supported for dvc get. It might be a simple bug or code path is different. We need to fix and add tests for this.

Version:

VC version: 0.80.0+82cdce
Python version: 3.7.5
Platform: Darwin-18.2.0-x86_64-i386-64bit
Binary: False
Package: None
Cache: reflink - True, hardlink - True, symlink - True
Filesystem type (cache directory): ('apfs', '/dev/disk1s1')
Filesystem type (workspace): ('apfs', '/dev/disk1s1') 

Reproduce:

mkdir git-repo
cd git-repo
git init
touch test
git commit -a -m "add test"
cd ..
dvc get ./git-repo test

outputs:

ERROR: failed to get 'test' from './git-repo' - URL './git-repo' is not a dvc repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequesting a new featurep1-importantImportant, aka current backlog of things to do

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions