From 4274494bc129a789172299dbf3fe7f08e9465a72 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 15 Jun 2014 17:08:43 +0100 Subject: git: Ensure that on update, any submodules are also updated. --- modules/git/manifests/snapshot.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/git/manifests/snapshot.pp') 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 } -- cgit v1.2.1