cmd/update.sh: don't switch to master when updating to a tag
This commit is contained in:
parent
ee5f337a82
commit
2a02038690
@ -268,7 +268,7 @@ EOS
|
|||||||
else
|
else
|
||||||
if [[ -n "${UPSTREAM_TAG}" && "${UPSTREAM_BRANCH}" != "master" ]]
|
if [[ -n "${UPSTREAM_TAG}" && "${UPSTREAM_BRANCH}" != "master" ]]
|
||||||
then
|
then
|
||||||
git checkout --force -B "master" "origin/master" "${QUIET_ARGS[@]}"
|
git branch --force "master" "origin/master" "${QUIET_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git checkout --force -B "${UPSTREAM_BRANCH}" "${REMOTE_REF}" "${QUIET_ARGS[@]}"
|
git checkout --force -B "${UPSTREAM_BRANCH}" "${REMOTE_REF}" "${QUIET_ARGS[@]}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user