On Jul 24, 2011, at 10:32 AM, caseybecking wrote:

> Both the local and the server have git installed. Ip and path have
> both been masked.
> 
> Password:
>    [xxx.xx.xx.xx] executing command
> ** [out :: xxx.xx.xx.xx] sh: git: command not found
> ** [out :: xxx.xx.xx.xx] sh: git: command not found
>    command finished in 825ms
> failed: "sh -c 'cd /path/has/been/masked; git fetch origin; git reset
> --hard origin/master'" on xxx.xx.xx.xx
> 
> now i can log onto the server via ssh and run the "sh -c 'cd /path/has/
> been/masked; git fetch origin; git reset --hard origin/master'"
> command without issues.
----
because you get an environment with a path

# which git
/usr/bin/git

change your 'git' commands to the full path /usr/bin/git (or adjust if your 
copy if git is installed somewhere else) and you won't get the command not 
found.

Craig

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to