build scripts: remove stale branches before sync'ing

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 8b30168930e65debc2c3a7b54e6b86e16784b50e)
This commit is contained in:
Javier Viguera 2015-10-21 10:56:06 +02:00
parent 35c0f5b8da
commit 12cb58a565
2 changed files with 4 additions and 2 deletions

View File

@ -125,7 +125,8 @@ if pushd ${YOCTO_INST_DIR}; then
fi
fi
yes "" 2>/dev/null | ${REPO} init --no-repo-verify -u ${MANIFEST_URL} ${repo_revision}
time ${REPO} sync ${MAKE_JOBS}
${REPO} forall -p -c 'git remote prune $(git remote)'
time ${REPO} sync -d ${MAKE_JOBS}
popd
fi

View File

@ -167,7 +167,8 @@ if pushd ${YOCTO_INST_DIR}; then
fi
fi
yes "" 2>/dev/null | ${REPO} init --no-repo-verify -u ${MANIFEST_URL} ${repo_revision}
time ${REPO} sync ${MAKE_JOBS}
${REPO} forall -p -c 'git remote prune $(git remote)'
time ${REPO} sync -d ${MAKE_JOBS}
popd
fi