DEB build scripts: remove dead branches from all "remote"s, not only

from "origin"

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/3/head
Michele Calgaro 6 years ago
parent 069e331060
commit 0fa81ca690
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -77,6 +77,9 @@ function _do_update()
eval git reset --hard HEAD $OPT_VERBOSE_LOG eval git reset --hard HEAD $OPT_VERBOSE_LOG
eval git clean -dxff $OPT_VERBOSE_LOG eval git clean -dxff $OPT_VERBOSE_LOG
eval git fetch $OPT_VERBOSE_LOG eval git fetch $OPT_VERBOSE_LOG
for _remote in `git remote`; do
eval git remote prune $_remote $OPT_VERBOSE_LOG
done
if [[ $(git rev-parse HEAD) != $(git rev-parse "origin/$BRANCH") ]]; then if [[ $(git rev-parse HEAD) != $(git rev-parse "origin/$BRANCH") ]]; then
eval git pull --rebase $GIT_NO_RECURSE_SUBMODULES $OPT_VERBOSE_LOG eval git pull --rebase $GIT_NO_RECURSE_SUBMODULES $OPT_VERBOSE_LOG
if [[ `git rev-parse HEAD` == `git rev-parse "origin/$BRANCH"` ]]; then if [[ `git rev-parse HEAD` == `git rev-parse "origin/$BRANCH"` ]]; then

Loading…
Cancel
Save