Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11203 (new defect)

Opened 5 months ago

Last modified 5 months ago

git uses remote path on local machine

Reported by: joevandyk Assigned to: minam
Priority: normal Milestone: 2.x
Component: Capistrano Version: edge
Severity: normal Keywords:
Cc: jamis@37signals.com

Description

I have git installed in /opt/local/bin/git on the remote machines, and in a different path on my local machines.

When git tries to get the local revision, it uses /opt/local/bin/git, not the git that's installed on my local machine.

Change History

02/23/08 22:45:08 changed by evolving_jerk

Capistrano operates on remote machine. Could you provide an example situation when Git should operate locally first during Capistrano session?

02/23/08 22:55:26 changed by joevandyk

When running tasks in the pending namespace, like this bit of code:

system(source.local.log(current_revision))

that's inside the default task for the pending namespace.

02/24/08 06:23:33 changed by minam

Capistrano actually supports the notion of independent locations for SCM commands. Joe, does it work if you have things set up like this:

  set :scm_command, "/opt/local/bin/git"
  set :local_scm_command, :default

Setting the latter value to :default tells Capistrano to use the default SCM command for git, e.g., to try and look in your PATH. You can alternatively specify the path explicitly there, if you like.

Does that work?

02/28/08 03:39:08 changed by minam

  • cc set to jamis@37signals.com.