diff options
author | Colin Guthrie <colin@mageia.org> | 2014-06-15 17:08:43 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-06-15 17:08:43 +0100 |
commit | 4274494bc129a789172299dbf3fe7f08e9465a72 (patch) | |
tree | a87056a8f7dbf31f00be89cc84a7845ed2a303d4 /modules/git | |
parent | c936fe050a41cb9e12674db510342f902bd5fd0f (diff) | |
download | puppet-4274494bc129a789172299dbf3fe7f08e9465a72.tar puppet-4274494bc129a789172299dbf3fe7f08e9465a72.tar.gz puppet-4274494bc129a789172299dbf3fe7f08e9465a72.tar.bz2 puppet-4274494bc129a789172299dbf3fe7f08e9465a72.tar.xz puppet-4274494bc129a789172299dbf3fe7f08e9465a72.zip |
git: Ensure that on update, any submodules are also updated.
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/manifests/snapshot.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/manifests/snapshot.pp b/modules/git/manifests/snapshot.pp index f89d27cd..32e77d36 100644 --- a/modules/git/manifests/snapshot.pp +++ b/modules/git/manifests/snapshot.pp @@ -16,7 +16,7 @@ define git::snapshot( $source, if ($refresh != '0') { cron { "update $name": - command => "cd $name && /usr/bin/git pull -q", + command => "cd $name && /usr/bin/git pull -q && /usr/bin/git submodule --quiet update --init --recursive", user => $user, minute => $refresh } |