Skip to content

Commit 9250783

Browse files
authored
Merge pull request #174 from dhalbert/exclude-betas
Exclude alpha and beta releases
2 parents 2e39520 + 821fd47 commit 9250783

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

update-submodules.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@
2727
git submodule init
2828
git submodule update
2929
git submodule foreach git fetch
30-
git submodule foreach "tag=\$(git rev-list --tags --max-count=1); git checkout -q \$tag"
30+
31+
# Regular release tags are 'x.x.x'. Exclude tags that are alpha or beta releases
32+
# They will contain a '-' in the tag, such as '3.0.0-beta.5'
33+
# --exclude must be before --tags.
34+
git submodule foreach "tag=\$(git rev-list --exclude='*-*' --tags --max-count=1); git checkout -q \$tag"

0 commit comments

Comments
 (0)