build/update: allow pull to fail if BRANCH does not track

This commit is contained in:
Franco Fichtner 2024-01-11 13:24:41 +01:00
parent f3fe77d597
commit 8fb96199df
1 changed files with 2 additions and 2 deletions

View File

@ -78,12 +78,12 @@ for ARG in ${ARGS}; do
git_clone ${DIR} "${URL}"
git_fetch ${DIR}
for BRANCH in ${BRANCHES}; do
git_pull ${DIR} ${BRANCH}
git_pull ${DIR} ${BRANCH} || true
done
if [ -n "${VERSION}" ]; then
git_tag ${DIR} ${VERSION}
git_pull ${DIR} ${BRANCHES}
git_pull ${DIR} ${BRANCHES} || true
git_reset ${DIR}
fi
done