Merge pull request #1142 from MikeMcQuaid/update-no-developer-stable

update.sh: don't restore branch to stable.
This commit is contained in:
Mike McQuaid 2016-09-26 12:14:43 +01:00 committed by GitHub
commit 1296140e59

View File

@ -299,7 +299,7 @@ EOS
if [[ -n "$HOMEBREW_NO_UPDATE_CLEANUP" ]]
then
if [[ "$INITIAL_BRANCH" != "$UPSTREAM_BRANCH" && -n "$INITIAL_BRANCH" &&
! "$INITIAL_BRANCH" =~ ^v[0-9]+\.[0-9]+\.[0-9]$ ]]
! "$INITIAL_BRANCH" =~ ^v[0-9]+\.[0-9]+\.[0-9]|stable$ ]]
then
git checkout "$INITIAL_BRANCH" "${QUIET_ARGS[@]}"
fi