From c7d3048eadf49882c159d03294d2dec2ee843bfe Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 3 Mar 2014 15:08:15 -0300 Subject: Adding subtrees script and updating submodules script --- bin/submodules | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/submodules') diff --git a/bin/submodules b/bin/submodules index f004f2b..f79b635 100755 --- a/bin/submodules +++ b/bin/submodules @@ -21,6 +21,9 @@ for repo in $repos; do if [ ! -d "modules/$module" ]; then echo "Processing puppet module $module..." git submodule add $repo modules/$module + elif [ -e "modules/$module/.git" ]; then + # The puppet module exists and is a git submodule, so update it + ( cd module/$module && git pull origin master ) fi done -- cgit v1.2.3