summaryrefslogtreecommitdiffstats
path: root/switch_all_submodules_to_head_and_clean
diff options
context:
space:
mode:
Diffstat (limited to 'switch_all_submodules_to_head_and_clean')
-rwxr-xr-xswitch_all_submodules_to_head_and_clean3
1 files changed, 1 insertions, 2 deletions
diff --git a/switch_all_submodules_to_head_and_clean b/switch_all_submodules_to_head_and_clean
index c3fbde6..052ef59 100755
--- a/switch_all_submodules_to_head_and_clean
+++ b/switch_all_submodules_to_head_and_clean
@@ -67,12 +67,11 @@ updateModule() {
git clean -dxff
fi
git checkout $branch
- git pull --rebase $GIT_NO_RECURSE_SUBMODULES
+ git pull --rebase --all --prune $GIT_NO_RECURSE_SUBMODULES
if [[ ! -z "`git status --porcelain $GIT_IGNORE_SUBMODULES`" ]]; then
git reset --hard HEAD
git clean -dxff
fi
- git remote prune origin
if [[ -e $PARENTDIR/$MODULE.gitmodules ]]; then
if [[ $gituser == "anonymous" ]]; then