Skip to content

Commit

Permalink
mksnapshot: Exclude rc tags from the search
Browse files Browse the repository at this point in the history
For instance, use "2.7.1-199-g9004b17be" instead of
"2.7.2rc1-11-g9004b17be" for snapshot generations.
  • Loading branch information
Julien-Elie committed Jun 22, 2024
1 parent 9004b17 commit a9ea958
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support/mksnapshot
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ elif [ "$tree" = "GIT" ]; then
date=$(git log -1 --pretty=%cd --date=format:%Y%m%d)
SNAPDIR=inn-"$VERSION"-"$date"
else
SNAPDIR=inn-"$(git describe --tags)"
# Do not take into account tags of beta or release candidate versions.
SNAPDIR=inn-"$(git describe --tags --exclude '*[A-Za-z]*')"
fi
make snapshot SNAPDIR="$SNAPDIR" SNAPDATE="$date"
else
Expand Down

0 comments on commit a9ea958

Please sign in to comment.