Skip to content

checkout: confusing "Nothing to do" message #2869

@ghost

Description

When checking out an empty directory, it shows "Nothing to do" because get_all_files_numbers(stages) throws 0 -- dvc/repo/checkout.py.

The checkout works but it shows the message.

mkdir empty
dvc add empty
rmdir empty
dvc checkout empty.dvc

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDid we break something?p1-importantImportant, aka current backlog of things to douiuser interface / interaction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions