From 97d6ca37caaebb5f4eff120ce965bb45ce7fc27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 20 Jun 2017 09:51:41 +0200 Subject: [PATCH] build: use git to get GITVERSION --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2a304b1..6ef80e5 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ ifneq (${ARCH}, amd64) KERNEL_ARCH=${ARCH} endif -GITVERSION:=$(shell cat .git/refs/heads/master) +GITVERSION:=$(shell git rev-parse HEAD) CHANGELOG_DATE:=$(shell dpkg-parsechangelog -SDate -lchangelog.Debian) export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp -lchangelog.Debian)