Merge pull request #1114 from zmwangx/update-no-restore-stable-branch

update.sh: do not restore stable (tag) branch
This commit is contained in:
Mike McQuaid 2016-09-24 17:19:44 +01:00 committed by GitHub
commit c0d06e015c

View File

@ -297,7 +297,8 @@ EOS
if [[ -n "$HOMEBREW_NO_UPDATE_CLEANUP" ]]
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
git checkout "$INITIAL_BRANCH" "${QUIET_ARGS[@]}"
fi