Bash tab uses WSL instead of Git Bash #11511
Unanswered
Mart-Bogdan
asked this question in
Q&A
Replies: 2 comments
-
I believe bash.exe in Linux tools path if set is attempted first, then PATH If path is \wsl$, wsl Git is used by default |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, @gerhardol it works. This is git ext settings and won't alter git setings? Nice then. Would be nice still to be able to do it automatially. And or add option to shell settings |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
Issue description
If WSL is installed on system, it adds bash.exe into system path. It's located at:
C:\Windows\System32\bash.exe and C:\Users%USER%\AppData\Local\Microsoft\WindowsApps\bash.exe
So when Git Ext tries to launch git bash, it launches WSL one, not one that is bundled with git, which is C:\Program Files\Git\cmd\git-bash.exe
In settings I just chose bash.
I didn't noticed it at first, but when I started using project with GIT LFS, it wasn't configured under WSL and it caused warning in console when I run git commands, and checked out file link instead of actual files.
Related to #7523: Allow custom shell in Console tab
Steps to reproduce
wsl --set-default-version 2
wsl.exe --install Ubuntu-22.04
Did this work in previous version of GitExtensions?
I don't know
Diagnostics
No response
Beta Was this translation helpful? Give feedback.
All reactions