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

Git fork selecting custom git instance doesn't change #121

Open efsjouw opened 2 years ago

efsjouw commented 2 years ago

I used the install.bat with a successful installation and placed the wslgit.exe somewhere on my machine and added it to PATH.

However when I try to set a custom git instance in Fork it doesn't appear to change?

image

EDIT - Ah am a little stupid, didn't notice the symlinks were 0 bytes? Maybe the setup is sort of unclear to me?

carlolars commented 2 years ago

Symlinks are 0 kB size, that is correct.

But since you have the resources folder I guess that you cloned this repository? Easiest is to just download the latest release zip from https://github.com/andy-5/wslgit/releases/latest and extract, and from there run the install.bat script :)

Patrick-clone commented 1 year ago

I have the same problem. I cannot select the bin/git.exe instance in Git Fork. Does anyone have a solution?

colinshipton commented 1 year ago

I also have the same problem, it used work fine and I had to to make a few updates (git inside WSL and wslgit due to https://github.com/andy-5/wslgit/issues/134) and now it no longer works.

I tried manually editing the GitInstancePath in Fork settings.json file and when starting Fork I get the following error:

System.InvalidOperationException: Process must exit before requested information can be determined.
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.get_ExitCode()
   at Fork.Git.Interaction.GitRequest.Execute(Boolean silent)
efsjouw commented 1 year ago

With the newest version it appears to work fine with git in wsl now, at least for me (had to make two ssh keys as well, one for wsl and one for windows) fork appears to just use git for windows but it's fine for now. No issues yet (maybe some other isuse was resolved?)

Stanzilla commented 11 months ago

Doesnt work for me anymore either. Haven't used wslgit in a while and just wanted to try it again today

Mika- commented 8 months ago

I had this same thing happen and the problem was missing wslgit.exe under the cmd directory. No idea how zip extraction failed, as it works fine when retrying