From: Wolfgang Bumiller Date: Tue, 27 Feb 2018 09:11:51 +0000 (+0100) Subject: buildsys: use git rev-parse HEAD for GITVERSION X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=b20c8f7ec6714ce6a81e96a10ef064f579125c96 buildsys: use git rev-parse HEAD for GITVERSION Signed-off-by: Wolfgang Bumiller --- diff --git a/Makefile b/Makefile index 1db06ec..4037c3c 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ export PERLDIR=${PREFIX}/share/perl5 PERLINCDIR=${PERLDIR}/asm-x86_64 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) -GITVERSION:=$(shell cat .git/refs/heads/master) +GITVERSION:=$(shell git rev-parse HEAD) DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb