Skip to content

Git Restore Fails with "did not match any file(s) known to git" #1812

@hannahchiodo-msft

Description

@hannahchiodo-msft

Running git restore for a particular file appears to be not be compatible with GVFS. Repro below:

$commit = git log -1 --pretty=%H
git ls-tree -r --name-only $commit some/file.cpp
some/file.cpp
git restore --source=$commit some/file.cpp
error: pathspec some/file.cpp' did not match any file(s) known to git

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions