Skip to content

Stage changes ends in Git fatal, saying file is outisde repository, because c:\ is used instead of C:\ #101294

@StefanBa

Description

@StefanBa
  • Extension version: v0.17.0
  • VSCode Version: 1.46.1
  • OS: win10

Steps to Reproduce:

  1. change a file
  2. go to Source control and right-click to the modified file
  3. select "Stage changes"
  4. I get this in the change log:

git add -A -- c:\Users\bla\Documents\GitHub\bla_init_.py
fatal: c:\Users\bla\Documents\GitHub\bla_init_.py: 'c:\Users\bla\Documents\GitHub\bla_init_.py' is outside repository
git ls-tree -l HEAD -- C:\Users\bla\Documents\GitHub\bla_init_.py

running that command in the cmd gives me also such an error:
git add -A -- c:\Users\bla\Documents\GitHub\bla_init_.py

running it with a capital letter "C" like so, it doesnt run in an error, so I assume that the small "c" is the problem
git add -A -- C:\Users\bla\Documents\GitHub\bla_init_.py

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions