Skip to content

dvc get from subdir #2847

@dmpetrov

Description

@dmpetrov
$ dvc -V
0.70.0+38be14

Regular pull works just fine for subdirs:

$ git clone https://github.com/dmpetrov/dataset
$ cd dataset
$ dvc pull dir1.dvc
$ ls dir1
file1 file2

dvc get does not work:

$ dvc get https://github.com/dmpetrov/dataset dir1/file1
ERROR: failed to get 'dir1/file1' from 'https://github.com/dmpetrov/dataset' - Output 'dir1/file1' not found in target repository 'https://github.com/dmpetrov/dataset'


Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!

This is quite a basic scenario - high priority bug.

  • Please make sure it covered by unit tests

EDITED: It worked before - regression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions