Add --tag
to git describe
Without this, the reported version is 'v3.1-{number of commits}` even after v3.2 has been tagged. Weird.
This commit is contained in:
parent
996f5da2af
commit
4a142316a1
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ RELEASE_CYCLE := alpha
|
|||||||
# _GIT_DESCRIPTION_OR_TAG is either something like '16-123abc' (when we're 16
|
# _GIT_DESCRIPTION_OR_TAG is either something like '16-123abc' (when we're 16
|
||||||
# commits since the last tag) or it's something like `v3.0-beta2` (when exactly
|
# commits since the last tag) or it's something like `v3.0-beta2` (when exactly
|
||||||
# on a tagged version).
|
# on a tagged version).
|
||||||
_GIT_DESCRIPTION_OR_TAG := $(subst v${VERSION}-,,$(shell git describe --dirty --always))
|
_GIT_DESCRIPTION_OR_TAG := $(subst v${VERSION}-,,$(shell git describe --tag --dirty --always))
|
||||||
# In the above cases, GITHASH is either `16-123abc` (in the same case above) or
|
# In the above cases, GITHASH is either `16-123abc` (in the same case above) or
|
||||||
# `123abc` (when the tag matches the current commit exactly) or `dirty` (when
|
# `123abc` (when the tag matches the current commit exactly) or `dirty` (when
|
||||||
# the tag matches the current commit exactly, and there are subsequent
|
# the tag matches the current commit exactly, and there are subsequent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user