Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Source control extension shows every file as "modified" because it uses wrong git executable #119845

Closed
kitattyor opened this issue Mar 25, 2021 · 4 comments
Assignees

Comments

@kitattyor
Copy link

  • VS Code Version: 1.54.3
  • OS Version: 20H2

image

On terminal it's fine.
image

Git output :

Looking for git in: C:\tools\cygwin\usr\libexec\git-core\git.exe
Looking for git in: C:\Program Files\Git\cmd\git.exe
Using git 2.24.1.windows.2 from C:\Program Files\Git\cmd\git.exe
> git rev-parse --git-dir
Open repository: d:\Projects\Server\Server\serverd
> git status -z -u
> git symbolic-ref --short HEAD
> git for-each-ref --format=%(refname)%00%(upstream:short)%00%(upstream:track)%00%(objectname) refs/heads/master refs/remotes/master
> git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname)
> git remote --verbose
> git config --get commit.template
> git show --textconv :src/pipeline/data_pipeline.h
> git show --textconv :src/pipeline/data_pipeline.cpp
> git ls-files --stage -- D:\Projects\Server\Server\serverd\src\pipeline\data_pipeline.h
> git ls-files --stage -- D:\Projects\Server\Server\serverd\src\pipeline\data_pipeline.cpp
> git cat-file -s 3b1f2a1910b838a4ef2dc3fe5b266e09ef27cdfc
> git cat-file -s c53d48c174640553a91ee512fd6505c617e27d6f
> git check-ignore -v -z --stdin
> git check-ignore -v -z --stdin
> git check-ignore -v -z --stdin
> git check-ignore -v -z --stdin
> git status -z -u
> git symbolic-ref --short HEAD
> git for-each-ref --format=%(refname)%00%(upstream:short)%00%(upstream:track)%00%(objectname) refs/heads/master refs/remotes/master
> git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname)
> git remote --verbose
> git config --get commit.template
> git check-ignore -v -z --stdin
> git status -z -u
> git symbolic-ref --short HEAD
> git for-each-ref --format=%(refname)%00%(upstream:short)%00%(upstream:track)%00%(objectname) refs/heads/master refs/remotes/master
> git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname)
> git remote --verbose
> git config --get commit.template
> git log --format=%H%n%aN%n%aE%n%at%n%ct%n%P%n%B -z -n21 -- d:\Projects\Server\Server\serverd\src\pipeline\data_pipeline.cpp
> git show --textconv :src/pipeline/data_pipeline.cpp
> git ls-files --stage -- D:\Projects\Server\Server\serverd\src\pipeline\data_pipeline.cpp
> git cat-file -s c53d48c174640553a91ee512fd6505c617e27d6f

Steps to Reproduce: Unknown (Doesn't happen on a new folder)

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Mar 25, 2021

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@kitattyor
Copy link
Author

Ok, it seems that the problem is with the git executable that it's trying to use

image

But I set "git.path": "C:\\tools\\cygwin\\usr\\libexec\\git-core\\git.exe", as shown in git log : but maybe the extension can't find it?

@kitattyor kitattyor changed the title The Source control extension shows every file as "modified" The Source control extension shows every file as "modified" because it uses wrong git executable Mar 25, 2021
@gjsjohnmurray
Copy link
Contributor

Maybe #7998 is still relevant?

@joaomoreno
Copy link
Member

joaomoreno commented Mar 26, 2021

VS Code just does not support cygwin, unfortunately. It was closed out of scope a while ago, and we still consider it to be. cc @eamodio

@github-actions github-actions bot locked and limited conversation to collaborators May 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants