Git: Command Not Found

381 views
Skip to first unread message

blissdev

unread,
Apr 8, 2008, 5:40:48 PM4/8/08
to Capistrano
I'm trying to deploy via git, and I am getting the following error

** [out] sh: git: command not found

git is in usr/bin so I'm not sure what else to do. Any thoughts?

Mason Browne

unread,
Apr 8, 2008, 5:44:44 PM4/8/08
to capis...@googlegroups.com
Try doing a:

set :git, "/path/to/git"

in your recipe.

(And.. make sure git is installed remotely...)

blissdev

unread,
Apr 8, 2008, 5:46:35 PM4/8/08
to Capistrano
Oops, it's not actually in usr/bin, accidentally ran that on my own
machine. How do I make git available to cap?

Mason Browne

unread,
Apr 8, 2008, 5:46:36 PM4/8/08
to capis...@googlegroups.com
I lied. That might work, but I think the right way is:

set :scm_command, "/path/to/git"

On Apr 8, 2008, at 3:40 PM, blissdev wrote:

Mislav Marohnić

unread,
Apr 8, 2008, 6:10:25 PM4/8/08
to capis...@googlegroups.com
Install git on the remote machine, either by package (git-core) or compile it yourself.

blissdev

unread,
Apr 8, 2008, 6:10:49 PM4/8/08
to Capistrano
Thank you sir, that worked out great.
Reply all
Reply to author
Forward
0 new messages