summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xswitch_all_submodules_to_head_and_clean4
1 files changed, 3 insertions, 1 deletions
diff --git a/switch_all_submodules_to_head_and_clean b/switch_all_submodules_to_head_and_clean
index 9620d51..9049344 100755
--- a/switch_all_submodules_to_head_and_clean
+++ b/switch_all_submodules_to_head_and_clean
@@ -33,7 +33,9 @@ if [[ -e .gitmodules ]]; then
git submodule init
git submodule update
- git submodule foreach "'git checkout master && git pull && $THISSCRIPT $1'"
+ git submodule foreach "git checkout master"
+ git submodule foreach "git pull"
+ git submodule foreach "$THISSCRIPT $1"
git checkout -- .gitmodules
fi