using --first-parent option to describe git version

This commit is contained in:
Christian Goll
2021-11-08 09:30:08 +01:00
parent 0a6d8b39a6
commit 2a6ba97992

View File

@@ -5,7 +5,7 @@ RELEASE ?= 1
SRC ?= main SRC ?= main
VERSION_FULL ?= $(shell test -e .git && git describe --tags --long) VERSION_FULL ?= $(shell test -e .git && git describe --tags --long --first-parent)
ifeq ($(VERSION_FULL),) ifeq ($(VERSION_FULL),)
VERSION_FULL := $(VERSION) VERSION_FULL := $(VERSION)
endif endif