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"