Merge pull request #8998 from zmstone/0918-build-force-fetch-tags-when-update-appup

chore: force fetch upstream tags before appup updates
This commit is contained in:
Zaiming (Stone) Shi 2022-09-27 21:45:02 +02:00 committed by GitHub
commit c3f6c302ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ else
pushd "${PREV_DIR_BASE}/${PREV_TAG}" pushd "${PREV_DIR_BASE}/${PREV_TAG}"
if [ "$NEW_COPY" = 'no' ]; then if [ "$NEW_COPY" = 'no' ]; then
REMOTE="$(git remote -v | grep "${GIT_REPO}" | head -1 | awk '{print $1}')" REMOTE="$(git remote -v | grep "${GIT_REPO}" | head -1 | awk '{print $1}')"
git fetch "$REMOTE" git fetch "$REMOTE" --tags --force
fi fi
git reset --hard git reset --hard
git clean -ffdx git clean -ffdx