andy-5 / wslgit

Use Git installed in Bash on Windows/Windows Subsystem for Linux (WSL) from Windows and Visual Studio Code (VSCode)
MIT License
1.18k stars 59 forks source link

Version 1.1.0 does not work #122

Closed leonheess closed 2 years ago

leonheess commented 2 years ago

Installed it with Debian WSL1 on 10.0.18363 Build 18363 and added to PATH. git.exe from /cmd/ is used but the command is not relayed to WSL.

andy-5 commented 2 years ago

Thank you for reporting this issue. I've confirmed that it does not work with Debian (but does work with Ubuntu). The reason is the latest change to use the full path to bash, which was hardcoded to /usr/bin/bash - but this executable does not exist on Debian (where Bash is /bin/bash).

Until this is fixed, you can use the previous wslgit release.

carlolars commented 2 years ago

I did which bash on my Ubuntu installation and just took that path, but /bin/bash is the correct location (see bash FILES).

Sorry for that mistake :/

andy-5 commented 2 years ago

@carlolars I've pushed 5e343709d1149057a37103bd916c9cc535ec8bc8 to develop to change it to /bin/bash - does this still work for your original use case where the full path is required?

carlolars commented 2 years ago

@andy-5 I just tested and it works. 👍

andy-5 commented 2 years ago

Just released wslgit v1.1.1 which fixes this.