From 8b4015ea24291e09bd276dc0a7db4013db8b056d Mon Sep 17 00:00:00 2001 From: Lee Hambley Date: Wed, 6 Oct 2010 12:50:03 +0200 Subject: [PATCH] Fixes issue #176 (Recursive Submodules) by adding the --recursive flag to `submodule update` when using the Git SCM with `:git_enable_submodules = true`. --- lib/capistrano/recipes/deploy/scm/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/recipes/deploy/scm/git.rb b/lib/capistrano/recipes/deploy/scm/git.rb index 9dfb0584..8ca817d0 100644 --- a/lib/capistrano/recipes/deploy/scm/git.rb +++ b/lib/capistrano/recipes/deploy/scm/git.rb @@ -152,7 +152,7 @@ module Capistrano if variable(:git_enable_submodules) execute << "#{git} submodule #{verbose} init" execute << "#{git} submodule #{verbose} sync" - execute << "#{git} submodule #{verbose} update" + execute << "#{git} submodule #{verbose} update --recursive" end execute.join(" && ")