Skip to content

Commit

Permalink
fix(tooling): Make sure Git version detection only picks up semver tags
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 6, 2022
1 parent ddecfd0 commit 25d669a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-aux/git-version-gen
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 151,7 @@ then
# directory, and "git describe" output looks sensible, use that to
# derive a version string.
elif test "`git log -1 --pretty=format:x . 2>/dev/null`" = x \
&& v=`git describe --tags --abbrev=7 --match="$prefix*" HEAD 2>/dev/null \
&& v=`git describe --tags --abbrev=7 --match="$prefix*\.*\.*" HEAD 2>/dev/null \
|| git describe --tags --abbrev=7 HEAD 2>/dev/null \
|| git log -1 --pretty=format:'v0-HEAD-%h' 2>/dev/null` \
&& v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \
Expand Down

0 comments on commit 25d669a

Please sign in to comment.