Hi,
In another PC I was trying to clone a project and the command "git clone" give me an error:
sh: git-upload-pack: command not found
This was because in ssh I can "see" the $PATH and I can't see the command
infact
Code: Select all
$ssh -p 1111 admin@myNASIP git-upload-pack
sh: git-upload-pack: command not found
but
Code: Select all
$ssh -p 1111 admin@myNASIP /opt/bin/git-upload-pack
usage: git upload-pack [--strict] [--timeout=<n>] <dir>
so I created a simbolik link in /usr/bin :
/usr/bin$ ln -s /opt/bin/git-upload-pack
(also for /usr/bin$ ln -s /opt/bin/git-receive-pack )
Now git clone works!
I hope this post will be userfull to other user.
Rikiko