aboutsummaryrefslogtreecommitdiff
path: root/bin/submodules
diff options
context:
space:
mode:
Diffstat (limited to 'bin/submodules')
-rwxr-xr-xbin/submodules2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/submodules b/bin/submodules
index f79b635..3abc46d 100755
--- a/bin/submodules
+++ b/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 )