From f9a97d74a5213c36bf97a03ded6ee7d4daba96d8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 5 Nov 2011 15:06:21 -0500 Subject: [PATCH] Fix script again --- switch_all_submodules_to_head_and_clean | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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