summaryrefslogtreecommitdiff
path: root/puppet/bin/submodules
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/bin/submodules')
-rwxr-xr-xpuppet/bin/submodules2
1 files changed, 1 insertions, 1 deletions
diff --git a/puppet/bin/submodules b/puppet/bin/submodules
index f79b635..3abc46d 100755
--- a/puppet/bin/submodules
+++ b/puppet/bin/submodules
@@ -20,7 +20,7 @@ for repo in $repos; do
module="`basename $repo .git | sed -e s/^puppet-//`"
if [ ! -d "modules/$module" ]; then
echo "Processing puppet module $module..."
- git submodule add $repo modules/$module
+ git submodule add -f $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 )