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>
pull/1/head
Slávek Banko 6 years ago
parent 8fb500ce46
commit a04af55867

@ -72,6 +72,7 @@ updateModule() {
git reset --hard HEAD git reset --hard HEAD
git clean -dxff git clean -dxff
fi fi
git remote prune origin
if [[ -e $PARENTDIR/$MODULE.gitmodules ]]; then if [[ -e $PARENTDIR/$MODULE.gitmodules ]]; then
if [[ $gituser == "anonymous" ]]; then if [[ $gituser == "anonymous" ]]; then

Loading…
Cancel
Save