1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

use „git describe“ instead of „git rev-parse“ to set git revision in version string

This commit is contained in:
Steffen Vogel 2017-03-11 23:34:19 -03:00
parent d5bcd02b2c
commit 0f395a1756

View file

@ -73,7 +73,7 @@ ifdef CI
CFLAGS += -D_VARIANT='"-ci-$(VARIANT)"'
else
GIT = $(shell type -p git)
GIT_REV = $(shell git rev-parse --short HEAD)
GIT_REV = $(shell git describe --tags --dirty)
ifneq ($(GIT),)
CFLAGS += -D_GIT_REV='"$(GIT_REV)"'
endif