update.sh: don't restore branch to stable.
Only run for Homebrew developers so assume they don’t want to switch back to an old stable branch. Fixes #1141.
This commit is contained in:
parent
19952958a8
commit
f6ec63cd8b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user