Merge pull request #1103 from MikeMcQuaid/update-upstream-tag-strict

update.sh: only update to semver tags.
This commit is contained in:
Mike McQuaid 2016-09-23 14:26:04 +01:00 committed by GitHub
commit 4cbeb1e981

View File

@ -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