Skip to content

Commit f0e40f1

Browse files
committed
build: Update gen-version.sh to use lightweight tags
By default, only annotated tags are used to generate the version string. Update the git describe command with --tags to allow use of lightweight tags as well. Signed-off-by: Naushir Patuck <[email protected]>
1 parent ac7d0a2 commit f0e40f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/gen-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ then
2626
fi
2727

2828
# Get a short description from the tree.
29-
version=$(git describe --abbrev=8 --match "v[0-9]*" 2>/dev/null)
29+
version=$(git describe --tags --abbrev=8 --match "v[0-9]*" 2>/dev/null)
3030

3131
if [ -z "$version" ]
3232
then

0 commit comments

Comments
 (0)