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
-~----------~----~----~----~------~----~------~--~---

Reply via email to