Merge pull request #1114 from zmwangx/update-no-restore-stable-branch
update.sh: do not restore stable (tag) branch
This commit is contained in:
commit
c0d06e015c
@ -297,7 +297,8 @@ EOS
|
|||||||
|
|
||||||
if [[ -n "$HOMEBREW_NO_UPDATE_CLEANUP" ]]
|
if [[ -n "$HOMEBREW_NO_UPDATE_CLEANUP" ]]
|
||||||
then
|
then
|
||||||
if [[ "$INITIAL_BRANCH" != "$UPSTREAM_BRANCH" && -n "$INITIAL_BRANCH" ]]
|
if [[ "$INITIAL_BRANCH" != "$UPSTREAM_BRANCH" && -n "$INITIAL_BRANCH" &&
|
||||||
|
! "$INITIAL_BRANCH" =~ ^v[0-9]+\.[0-9]+\.[0-9]$ ]]
|
||||||
then
|
then
|
||||||
git checkout "$INITIAL_BRANCH" "${QUIET_ARGS[@]}"
|
git checkout "$INITIAL_BRANCH" "${QUIET_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user