http://capistrano.lighthouseapp.com/projects/8716-capistrano/tickets
Much appreciated! - Jamis On Apr 9, 2008, at 1:33 PM, John Aughey wrote:
Deploying with git fails because of missing parens around a command that calls cd. Subsequence commands expect the cwd to be the home directory and subsequently fail. The patch to git.rb to fix this is below:diff --git a/lib/capistrano/recipes/deploy/scm/git.rb b/lib/ capistrano/recipes/deploy/scm/git.rb index 1a3343b..5492e5f 100644 --- a/lib/capistrano/recipes/deploy/scm/git.rb +++ b/lib/capistrano/recipes/deploy/scm/git.rb @@ -144,7 +144,7 @@ module Capistrano end # checkout into a local branch rather than a detached HEAD - execute << "cd #{destination} && #{git} checkout -b deploy #{revision}" + execute << "(cd #{destination} && #{git} checkout -b deploy #{revision})" if configuration[:git_enable_submodules] execute << "#{git} submodule init" --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
