Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

2 participants