Skip to content

VSCode doesn't use correct or newest version of Git #7361

Closed

Description

  • VSCode Version: 1.2.0-insider (24e811a)
  • OS Version: Windows 7 SP 1 x64

Steps to Reproduce:

  1. Install Git for Windows 1.8.3
  2. Install Cygwin with Git 2.8.0
  3. Start VSCode
  4. Receive warning "You seem to have git 1.8.3 installed. Code works best with git >= 2.0.0."

Expected Result:

I'd expect VSCode to use the first item (earlier in my PATH) or the newest version.

Actual Result:

VSCode is using the last exe in my path from what i can tell.

Environment Info:

C:\Users\brandon>where git
D:\cygwin64\bin\git.exe
C:\Program Files (x86)\Git\cmd\git.exe

C:\Users\brandon>git --version
git version 2.8.0

C:\Users\brandon>D:\cygwin64\bin\git.exe --version
git version 2.8.0

C:\Users\brandon>"C:\Program Files (x86)\Git\cmd\git.exe" --version
git version 1.8.3.msysgit.0

C:\Users\brandon>echo %PATH%
D:\cygwin64\bin;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;D:\PHP;D:\Python\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Universal Extractor;C:\Program Files (x86)\Universal Extractor\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\MySQL\MySQL Utilities 1.3.4\;D:\Cygwin\bin;C:\Windows\SysWOW64;C:\Program Files\Perforce;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%USERPROFILE%\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Go\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Skype\Phone\;C:\HashiCorp\Vagrant\bin;C:\Qt\Qt5.1.1\5.11\mingw48_32\bin;D:\cygwin64\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Users\brandon\AppData\Local\atom\bin;C:\Rust\bin;C:\Users\brandon\AppData\Roaming\npm;C:\Python27;C:\Program Files (x86)\Microsoft VS Code Insiders\bin

Activity

  1. joaomoreno commented on Jun 8, 2016

    @joaomoreno
    Contributor

    Code doesn't support cygwin's git.

    Also, in Windows we have some heuristics to pick it up without depending on the PATH. That's why the Program Files (x86) one is being picked up.

    Git has long ago released a 2.x.x version for Windows, I suggest to install that one.

  2. brandonwamboldt commented on Jun 8, 2016

    @brandonwamboldt
    Author

    Any reason why Code doesn't/can't support Cygwin's git?

  3. joaomoreno commented on Jun 8, 2016

    @joaomoreno
    Contributor

    Just never really looked into it.

  4. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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