Permalink
Browse files

Fix git submodule support to init on sync (closes #11202)

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@8928 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent f8ac678 commit 23a6f61e683b758bfada6b2242c67133d9292b4b @jamis jamis committed Feb 24, 2008
Showing with 3 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +1 −0 lib/capistrano/recipes/deploy/scm/git.rb
View
2 CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fix git submodule support to init on sync [halorgium]
+
* Add alternative server-centric role definition method [James Duncan Davidson]
* Add support for password prompts from the Mercurial SCM [ches]
View
1 lib/capistrano/recipes/deploy/scm/git.rb
@@ -178,6 +178,7 @@ def sync(revision, destination)
execute << "#{git} fetch #{remote} && #{git} reset --hard #{revision}"
if configuration[:git_enable_submodules]
+ execute << "#{git} submodule init"
execute << "#{git} submodule update"
end

0 comments on commit 23a6f61

Please sign in to comment.