diff options
| author | Mike McQuaid | 2016-09-26 08:22:55 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-26 08:22:56 +0100 |
| commit | f6ec63cd8b2d1999d1f51fa1864bbb2deb4a6d3f (patch) | |
| tree | 7b61962b0151bfd17b7389e620f9545a7c6df8b8 /Library | |
| parent | 19952958a80c5f8c87a7ba8a471ceb3cc2f5da47 (diff) | |
| download | brew-f6ec63cd8b2d1999d1f51fa1864bbb2deb4a6d3f.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 685e0e5f5..03c9693e8 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 |
