summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-23 19:03:26 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-23 19:08:34 +0200
commit59b0682f87803e69a58e58ea0f3c50f606745cae (patch)
tree78985b643fa5efaa4133152295dd2af26af33f4f
parent1bafa8259d70bdc4691c36c064e4fd756a5e72aa (diff)
Set SUB_VERSION as current commit ID.
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b55a77a..fe910a2 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ ifeq ($(origin SUB_VERSION), undefined)
VERSION := $(firstword $(subst -, ,$(SUB_VERSION)))
SUB_VERSION := $(word 2,$(subst -, ,$(SUB_VERSION)))
else
- SUB_VERSION := $(shell git describe --tags --always | sed 's/^v//')
+ SUB_VERSION := $(shell git rev-parse --short HEAD)
ifeq ($(SUB_VERSION), )
SUB_VERSION := unknown-dev
endif