cmd/update.sh: don't switch to master when updating to a tag

This commit is contained in:
Bo Anderson 2023-12-02 03:06:30 +00:00
parent ee5f337a82
commit 2a02038690
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -268,7 +268,7 @@ EOS
else
if [[ -n "${UPSTREAM_TAG}" && "${UPSTREAM_BRANCH}" != "master" ]]
then
git checkout --force -B "master" "origin/master" "${QUIET_ARGS[@]}"
git branch --force "master" "origin/master" "${QUIET_ARGS[@]}"
fi
git checkout --force -B "${UPSTREAM_BRANCH}" "${REMOTE_REF}" "${QUIET_ARGS[@]}"