From 5ea75b469fd0081e9f86f6915f5306bc5fa78acd Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 12 Oct 2017 16:09:45 +0200 Subject: [PATCH] build: git describe is better than rev-parse --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 95490ebd80..d10ca8e388 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ BOARDLOADER_MAXSIZE = 49152 BOOTLOADER_MAXSIZE = 131072 FIRMWARE_MAXSIZE = 786432 -GITREV=$(shell git rev-parse --short HEAD) +GITREV=$(shell git describe --always --dirty) CFLAGS += -DGITREV=$(GITREV) ## help commands: