Skip to content

Conversation

@jvasileff
Copy link

msys2 git returns absolute paths like "/c/Users/johnv/...". Git for Windows returns absolute paths like C:\Users\johnv...". To support both (and likely Cygwin git as well), relative paths are requested from git and then made absolute with path.resolve().

This fixes #143165

To test, install both Git for Windows & msys2 git

After installing msys2, install msys2 git with pacman -S git.

Once both gits are installed, vscode git integration should work with either of the following User settings.json configs (vscode restart required when switching):

{
    "git.path": "C:\\Program Files\\Git\\cmd\\git.exe"
    //"git.path": "C:\\msys64\\usr\\bin\\git.exe"
}

msys2 git returns absolute paths like "/c/Users/johnv/...". Git for
Windows returns absolute paths like C:\Users\johnv\...". To support both
(and likely Cygwin git as well), relative paths are requested from git
and then made absolute with path.resolve().
@dpengr
Copy link

dpengr commented Apr 21, 2023

Is this merge request just waiting for review?

@tigerinus
Copy link

Who's the right person for PR approval?

@lszomoru lszomoru added the git GIT issues label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git - Support for Git in Msys2

4 participants