diff options
author | David Schmitt <david.schmitt@puppetlabs.com> | 2015-05-28 18:48:40 +0100 |
---|---|---|
committer | David Schmitt <david.schmitt@puppetlabs.com> | 2015-05-28 18:48:40 +0100 |
commit | 18b91b2f51a1cd8cd6911bd981e4629dd0d407e8 (patch) | |
tree | b71493c9a8c8dd93070704a61d9215a1d810bbe6 /lib/puppet/provider/vcsrepo | |
parent | 8f47c4e744992a70028a4a744ae654d6fd6d7233 (diff) | |
parent | 56852e9cbf93c3f6f5db7dcdd40b3d364b548182 (diff) | |
download | puppet-vcsrepo-18b91b2f51a1cd8cd6911bd981e4629dd0d407e8.tar.gz puppet-vcsrepo-18b91b2f51a1cd8cd6911bd981e4629dd0d407e8.tar.bz2 |
Merge pull request #232 from netors/master
Consider the submodules flag on specific revision cloning
Diffstat (limited to 'lib/puppet/provider/vcsrepo')
-rw-r--r-- | lib/puppet/provider/vcsrepo/git.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb index 44e4d04..49ac648 100644 --- a/lib/puppet/provider/vcsrepo/git.rb +++ b/lib/puppet/provider/vcsrepo/git.rb @@ -75,7 +75,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo) at_path { git_with_identity('reset', '--hard', "#{@resource.value(:remote)}/#{desired}") } end #TODO Would this ever reach here if it is bare? - if @resource.value(:ensure) != :bare + if @resource.value(:ensure) != :bare && @resource.value(:submodules) == :true update_submodules end update_owner_and_excludes |