Skip to content

git restore after deleting a directory with nested subdirectories fails #1901

@tyrielv

Description

@tyrielv

Running git restore after deleting a directory with nested subdirectories fails with fatal: cannot unlink '<dir>/<subdir>': directory not empty

I have provided a repro at #1900.

I speculate that git restore restores the parent directory first which recreates its entire projection, then tries to restore the subdirectory which fails because the subdirectory projection was already restored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions