I was eventually able to haggle my host into enabling .ssh/environment
for me, so I got around the issue.

But thanks for the tip, I figured there had to be a way to set
different paths depending if it was local or remote.

Jake

On Jun 23, 10:09 am, Jamis Buck <[EMAIL PROTECTED]> wrote:
> What version of Capistrano are you using? If 2.2 and later, do you  
> have default_run_options[:pty] = true set anywhere?
>
> Regarding setting the scm_command, note that you might want to set  
> both scm_command, and local_scm_command, since if you only set the  
> former, it will be used both remotely and locally to find git. So,  
> something like this should work:
>
>    set :scm_command, "/home/paperpig/local/git/bin/git"
>    set :local_scm_command, :default
>
> That will make sure the explicit path will be used to find git on the  
> remote hosts, but on the local host your path will be searched.
>
> - Jamis
>
> On Jun 22, 2008, at 6:02 PM, Jacob wrote:
>
>
>
> > I've been struggling with this for a couple hours, and just cannot
> > wrap my head around this.
>
> > My googling has lead me to believe the problem is that Git is not in
> > my path, which is correct as it is set in my .bash_profile, and
> > setting the path with .ssh/environment is not an option with my host.
>
> > However I have `set :scm_command, "/home/paperpig/local/git/bin/git"`
> > in my deploy, which if I am reading the error correctly, is returning
> > not found.
>
> > custom_require.rb:27: command not found: /home/paperpig/local/git/bin/
> > git ls-remote [EMAIL PROTECTED]:jkestr/pigeons.git master
>
> > What confuses me is I commented out my .bash_profile, logged back into
> > my host and cut and pasted the command in. It ran just fine.
>
> > Any pointers would be great as I've been spending seven hours on this
> > now and haven't found much to run off of.
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to