mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-18 14:47:03 +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:
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user