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

Use native WSL Git executables also for \\wsl.localhost as for \\wsl$ #10815

Closed
txdFabio opened this issue Mar 22, 2023 · 4 comments · Fixed by #10908
Closed

Use native WSL Git executables also for \\wsl.localhost as for \\wsl$ #10815

txdFabio opened this issue Mar 22, 2023 · 4 comments · Fixed by #10908

Comments

@txdFabio
Copy link

Feature description

With Windows 11 the \\wsl$ path is automatically translated in \\wsl.localhost and that path change makes unusable this PR merged in the v4.0: #9702
It would be great to add the check also for the new path so that Gitext can use WSL executables in both versions

Environment

  • Git Extensions 4.0.2.16100
  • Build 25100ec
  • Git 2.39.1.windows.1
  • Microsoft Windows NT 10.0.22621.0
  • .NET 6.0.15
@RussKie
Copy link
Member

RussKie commented Mar 22, 2023

@txdFabio as a workaround you can change the path in Windows Explorer back to \\wsl$\. That's what I've been doing.

@gerhardol that's the answer to your offline question ;)

@txdFabio
Copy link
Author

@txdFabio as a workaround you can change the path in Windows Explorer back to \\wsl$\. That's what I've been doing.

@gerhardol that's the answer to your offline question ;)

I tried but if I use the right-context-menu command "GitExt Open Repository" in the directory it still takes \wsl.localhost (messing up alla files with permissions and poor performance)
The only workaround I've found is to open the repo from "GitExt -> start -> open" and then adjust the path in the form before opening.

@RussKie
Copy link
Member

RussKie commented Mar 22, 2023 via email

@RussKie
Copy link
Member

RussKie commented Apr 21, 2023

I think we could intercept when a repo is opened from \\wsl.localhost\ and modify the path to \\wsl$\.
I observe the path change whenever I start VS Code from wsl2 (which starts with \\wsl$\) and then choose "Reveal in Explorer" - the Explorer will open a folder as \\wsl.localhost\.

RussKie added a commit to RussKie/gitextensions that referenced this issue Apr 22, 2023
@ghost ghost added the 🚧 status: in progress Issues which have associated PRs label Apr 22, 2023
RussKie added a commit to RussKie/gitextensions that referenced this issue Apr 23, 2023
RussKie added a commit to RussKie/gitextensions that referenced this issue Apr 23, 2023
@RussKie RussKie linked a pull request Apr 23, 2023 that will close this issue
@ghost ghost removed the 🚧 status: in progress Issues which have associated PRs label Apr 23, 2023
@RussKie RussKie closed this as completed Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants