File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
- HOMEBREW_VERSION=" 0.9.9 "
1
+ HOMEBREW_VERSION=" 1.0.0 "
2
2
3
3
onoe () {
4
4
if [[ -t 2 ]] # check whether stderr is a tty.
Original file line number Diff line number Diff line change @@ -215,7 +215,18 @@ merge_or_rebase() {
215
215
216
216
trap reset_on_interrupt SIGINT
217
217
218
- REMOTE_REF=" origin/$UPSTREAM_BRANCH "
218
+ if [[ " $DIR " = " $HOMEBREW_REPOSITORY " && -z " $HOMEBREW_NO_UPDATE_CLEANUP " ]]
219
+ then
220
+ UPSTREAM_TAG=" $( git tag --list --sort=-version:refname | head -n1) "
221
+ fi
222
+
223
+ if [ -n " $UPSTREAM_TAG " ]
224
+ then
225
+ REMOTE_REF=" refs/tags/$UPSTREAM_TAG "
226
+ UPSTREAM_BRANCH=" v$UPSTREAM_TAG "
227
+ else
228
+ REMOTE_REF=" origin/$UPSTREAM_BRANCH "
229
+ fi
219
230
220
231
if [[ -n " $( git status --untracked-files=all --porcelain 2> /dev/null) " ]]
221
232
then
337
348
set -x
338
349
fi
339
350
340
- if [[ -z " $HOMEBREW_UPDATE_CLEANUP " ]]
351
+ if [[ -z " $HOMEBREW_UPDATE_CLEANUP " && -z " $HOMEBREW_UPDATE_TO_TAG " ]]
341
352
then
342
353
if [[ -n " $HOMEBREW_DEVELOPER " || -n " $HOMEBREW_DEV_CMD_RUN " ]]
343
354
then
You can’t perform that action at this time.
0 commit comments