Push can't run TortoiseGitPlink.exe with Cygwin hack enabled
What steps will reproduce the problem?
- Have some commits waiting to be pushed
- Push with TortoiseGit
What is the expected output? What do you see instead?
git.exe push --progress "origin" master:master error: cannot run C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe: No such file or directory fatal: unable to fork
git did not exit cleanly (exit code 128) (94 ms @ 2020-03-13 20:22:05)
What version of TortoiseGit and Git are you using? On what operating system?
Currently 2.10.0, this was also happening with a previous version I had after I haven't used it for a while - although this was working correctly before. Windows 7 Build 7601 (SP1) Cygwin - latest version, bash 4.4.12(3) Cygwin Hack enabled in TortoiseGit settings
Please provide any additional information below.
The TortoiseGitPlink.exe file mentioned above does exist. However it seems that TortoiseGit (or git.exe itself) is trying to execute it using the Windows-style path, and this fails.
Workaround: In TortogiseGit Settings > Network > SSH > SSH Client, set the path to either (note the forward slashes) C:/Program Files/TortoiseGit/bin/TortoiseGitPlink.exe or (Cygwin-style path) /mnt/C/Program Files/TortoiseGit/bin/TortoiseGitPlink.exe