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:
parent
d5bcd02b2c
commit
0f395a1756
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue