Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Cannot Spawn C:\Path To\TortoiseGit\Bin: No such file or directory

Trying to do a fetch from origin:

git remote update

Get the error

Error: Cannot Spawn C:\Path To\TortoiseGit\Bin: No such file or directory
fatal: unable to fork
Error: Could not fetch origin

Why is this happening? Also is there a fix?

like image 238
Anicho Avatar asked Feb 28 '13 15:02

Anicho


2 Answers

For me the answer was removing the double quotes of "c:\Program Files (x86)\PuTTY\plink.exe" from the environment variable GIT_SSH.

like image 174
Tsunamis Avatar answered Oct 12 '22 00:10

Tsunamis


This blog would seem to be the exact same problem that you have:

http://www.techneiq.com/2012/08/error-cannot-spawn-cprogram.html

And this issue on msysgit also points to the same error:

https://code.google.com/p/msysgit/issues/detail?id=313

Find out what your GIT_SSH environmental variable is pointing to and if that path has a space in it. Maybe reinstalling TortoiseGit would solve it. (Otherwise I can really recommend GitExtensions instead)

like image 23
Daniel Lee Avatar answered Oct 12 '22 01:10

Daniel Lee