andy-5/wslgit

Usage from another distro (inter-distro behaviour)

ferferga opened this issue · 1 comments

Hello

I have git configured in my default distro with all my credentials and config. I have another distro, and I would like to use the git from my default distro, but currently this fails:

image

Would be great if this could be a supported use case.

Unfortunately, this is currently not possible. The current behavior specifically checks if the working directory is inside a WSL distro and uses git from that distro.

I think the main reason is that files from one distro are not easily accessible from within another distro. So git running in your default distro cannot access the files from the working directory in another distro.