mirror of
https://github.com/gosticks/brew.git
synced 2026-10-04 06:26:59 +00:00
update.sh: only update to semver tags.
Otherwise random e.g. `pr-123` tags may cause `brew update` to update to the wrong version.
This commit is contained in:
@@ -217,7 +217,7 @@ merge_or_rebase() {
|
||||
|
||||
if [[ "$DIR" = "$HOMEBREW_REPOSITORY" && -z "$HOMEBREW_NO_UPDATE_CLEANUP" ]]
|
||||
then
|
||||
UPSTREAM_TAG="$(git tag --list --sort=-version:refname | head -n1)"
|
||||
UPSTREAM_TAG="$(git tag --list --sort=-version:refname | grep '^[0-9]*\.[0-9]*\.[0-9]*$' | head -n1)"
|
||||
else
|
||||
UPSTREAM_TAG=""
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user