Skip to content

Git on Windows: fatal when adding or removing files due to drive lowercase letter #108690

Closed
@asn007

Description

@asn007
  • VSCode Version: 1.50.0
  • OS Version: Windows 10
  • Git version: 2.19.2.windows.1

Steps to Reproduce:

  1. Open VSCode on Windows
  2. Create a new project
  3. Try to add new files to the index via SCM GUI

Expected result:
Files are added/removed to index successfully

Actual result:
Error message: `fatal: d:[filepath] 'd:[filepath]' is outside repository

Extension console output:
image

It seems that the VSCode Git extension does not call sanitizePath() inside git.ts on filenames while adding/removing files.
It does, however, with invocations like ls-remote, which is seen from the output message

Does this issue occur when all extensions are disabled?: Does not apply, extension issue

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions