summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-08-06 17:23:34 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-08-06 17:24:32 +0200
commit7bfde00c316cfc42351510b082d999392d9bf281 (patch)
tree44cc02c0f3c4c70d19144bcedc28a8b3c7ae5bb7
parent9e77d9c754401953fc41831e39cb2359ce65e72b (diff)
downloadscripts-7bfde00c316cfc42351510b082d999392d9bf281.tar.gz
scripts-7bfde00c316cfc42351510b082d999392d9bf281.zip
Update switch_all_submodules_to_head_and_clean
+ add cleaning of potential temporary branches from remote server Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit a04af5586759094483cd1aeece37530a76a2f1d4)
-rwxr-xr-xswitch_all_submodules_to_head_and_clean1
1 files changed, 1 insertions, 0 deletions
diff --git a/switch_all_submodules_to_head_and_clean b/switch_all_submodules_to_head_and_clean
index 92f715b..b41a392 100755
--- a/switch_all_submodules_to_head_and_clean
+++ b/switch_all_submodules_to_head_and_clean
@@ -72,6 +72,7 @@ updateModule() {
git reset --hard HEAD
git clean -dxff
fi
+ git remote prune origin
if [[ -e $PARENTDIR/$MODULE.gitmodules ]]; then
if [[ $gituser == "anonymous" ]]; then