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

Support for multiple WSL distros and using a wslgit default distro #129

Merged
merged 5 commits into from
Jul 14, 2022

Conversation

carlolars
Copy link
Contributor

I use WSL2 for my main distro, but unfortunately I still have to do some stuff in the windows filesystem. So I set up a WSL1 running Alpine Linux and used git from within there. But my git GUI (Fork) was still using git from WSL2.

I then figured that it must be possible for wslgit to know if working in the windows filesystem or if working in a WSL2 filesystem and use the appropriate WSL distribution. It turns out that it was quite simple to detect when accessing files in a WSL filesystem using the UNC path and also to know which distribution must be used to access those files (solving #127?), and for all other paths use the default WSL distribution or a custom "wslgit" default distribution.

@andy-5
Copy link
Owner

andy-5 commented Jul 14, 2022

This is great! Thank you. I haven't tested it myself yet, but your changes look good, so I'll merge it right away.

@andy-5 andy-5 merged commit 18a1c78 into andy-5:develop Jul 14, 2022
@carlolars carlolars deleted the multi-wsl-dist branch July 14, 2022 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants