From f6ec63cd8b2d1999d1f51fa1864bbb2deb4a6d3f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 26 Sep 2016 08:22:55 +0100 Subject: [PATCH] update.sh: don't restore branch to stable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only run for Homebrew developers so assume they don’t want to switch back to an old stable branch. Fixes #1141. --- Library/Homebrew/cmd/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 685e0e5f57..03c9693e8d 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -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