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

Interactive Rebase/Commit Squashing not working inside Fork #124

Open ffornazaric opened 2 years ago

ffornazaric commented 2 years ago

I'm getting the following error whilst trying an interactive rebase/Squashing:

/mnt/c/Users/Name Surname/Downloads/wslgit/wslgit/bin/Fork.RI: 1: /mnt/c/Users/Name: not found

error: There was a problem with the editor '/mnt/c/Users/Name Surname/Downloads/wslgit/wslgit/bin/Fork.RI'.

Every other actions are working fine.

I suspect there's a problem with the space in the path.

jmfenn commented 2 years ago

The problem is the space in your path. "Name Surname" causes this issue. Move your wslgit to a folder that doesn't have any spaces.

EvHaus commented 2 years ago

In addition to the space in the file path for wslgit itself, I also found that if you have spaces in the path for your Fork (Fork.exe) installation -- it will also cause issues.

My solution was to create a new Windows user that doesn't have any spaces and then reinstall all my apps in that profile.