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

Update IsWslPath to detect \\wsl.localhost-style paths #612

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

mjcheetham
Copy link
Collaborator

@mjcheetham mjcheetham commented Jan 18, 2022

Starting in Windows build 21354, the preferred WSL UNC file path is \\wsl.localhost\<distro>\ and not the older administrative-share style \\wsl$\<distro>\.

The older "wsl$" style will continue to be supported, but won't be the default type of path we'll see from the system going forwards.

We now support detecting both styles as WSL paths.

Fixes #611

@mjcheetham mjcheetham added bug A bug in Git Credential Manager platform:wsl Specific to Windows Subsystem for Linux labels Jan 18, 2022
Copy link
Contributor

@vdye vdye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Starting in Windows build 21354, the preferred WSL UNC file path is
"\\wsl.localhost\<distro>\" and not the older administrative-share style
"\\wsl$\<distro\".

The older "wsl$" style will continue to be supported, but won't be the
default type of path we'll see from the system going forwards.

We now support detecting both styles as WSL paths.
@mjcheetham mjcheetham merged commit 4c4f395 into git-ecosystem:main Jan 27, 2022
@mjcheetham mjcheetham deleted the wsl-localhost branch January 27, 2022 11:34
@ldennington ldennington mentioned this pull request Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in Git Credential Manager platform:wsl Specific to Windows Subsystem for Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GIT_EXEC_PATH being wsl.localhost rather than wsl$
3 participants