diff --git a/switch_all_submodules_to_head_and_clean b/switch_all_submodules_to_head_and_clean index c3fbde6..2af1d91 100755 --- a/switch_all_submodules_to_head_and_clean +++ b/switch_all_submodules_to_head_and_clean @@ -72,7 +72,9 @@ updateModule() { git reset --hard HEAD git clean -dxff fi - git remote prune origin + for _remote in `git remote`; do + git remote prune $_remote + done if [[ -e $PARENTDIR/$MODULE.gitmodules ]]; then if [[ $gituser == "anonymous" ]]; then