Skip to content

Cannot delete files if the project has .git but git.exe is inaccessible #2453

Open
@YellowAfterlife

Description

@YellowAfterlife

If the project has a .git directory, right-clicking a file and picking Delete runs

git rm -f "<path>"

as mirrored in Output log. However, if your git just so happens to be broken or inaccessible, this will fail and subsequently print

The system cannot find the path specified.

without deleting anything.

In a good case should check if the command fails (perhaps subsequently checking if plain git fails as well to determine that it's specifically git being amiss) and do the regular deletion instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions