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:
parent
35c0f5b8da
commit
12cb58a565
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue