1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

Use git describe --tags to include non-annotated tags

By default, `git describe` uses only annotated tags. Since some may not
be annotated (like v1.10) this causes some scripts to pick a confusing
version identifier.

This patch fixes the issue by passing `--tags`, which means all tags
will be considered.
This commit is contained in:
Alberto Bertogli
2022-09-04 13:10:07 +01:00
parent ddcfacccd0
commit b9c2ef68f9
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
ifndef VERSION
VERSION = `git describe --always --long --dirty`
VERSION = `git describe --always --long --dirty --tags`
endif
# https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal

View File

@@ -56,7 +56,7 @@ go run "${UTILDIR}/coverhtml/coverhtml.go" \
-input="$COVER_DIR/all.out" -strip=3 \
-output="$COVER_DIR/coverage.html" \
-title="chasquid coverage report" \
-notes="Generated at commit <tt>$(git describe --always --dirty)</tt> ($(git log -1 --format=%ci))"
-notes="Generated at commit <tt>$(git describe --always --dirty --tags)</tt> ($(git log -1 --format=%ci))"
echo
echo