summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2013-07-17 14:25:51 -0700
committerAaron Stone <aaron@serendipity.cx>2013-07-17 14:25:51 -0700
commitff2607235cd29114212bd49186319a7bf0980944 (patch)
tree3932da0e02fd12956825a1f5796e83aa4bc43d87 /lib
parent76227ed83795b882e0d8cffcff79ea5bab61ab6c (diff)
parentad6913b81db57f29ab634d353963b66ffb2a814d (diff)
Merge pull request #46 from Paulche/master
Enable unlimited nesting for submodule updating
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/vcsrepo/git.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb
index 536f652..d971e90 100644
--- a/lib/puppet/provider/vcsrepo/git.rb
+++ b/lib/puppet/provider/vcsrepo/git.rb
@@ -231,10 +231,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
def update_submodules
at_path do
- git_with_identity('submodule', 'init')
- git_with_identity('submodule', 'update')
- git_with_identity('submodule', 'foreach', 'git', 'submodule', 'init')
- git_with_identity('submodule', 'foreach', 'git', 'submodule', 'update')
+ git_with_identity('submodule', 'update', '--init', '--recursive')
end
end