From 821fd4716914f3e984a6d6cabaf898cd3e2a2238 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Wed, 10 Jul 2019 17:09:49 -0400 Subject: [PATCH] Exclude alpha and beta releases --- update-submodules.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/update-submodules.sh b/update-submodules.sh index ff303819..2c40b392 100755 --- a/update-submodules.sh +++ b/update-submodules.sh @@ -27,4 +27,8 @@ git submodule init git submodule update git submodule foreach git fetch -git submodule foreach "tag=\$(git rev-list --tags --max-count=1); git checkout -q \$tag" + +# Regular release tags are 'x.x.x'. Exclude tags that are alpha or beta releases +# They will contain a '-' in the tag, such as '3.0.0-beta.5' +# --exclude must be before --tags. +git submodule foreach "tag=\$(git rev-list --exclude='*-*' --tags --max-count=1); git checkout -q \$tag"