]> git.proxmox.com Git - qemu-server.git/commitdiff
buildsys: use git rev-parse HEAD for GITVERSION
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 27 Feb 2018 09:11:51 +0000 (10:11 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 1 Mar 2018 09:51:41 +0000 (10:51 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Makefile

index 1db06ec33c14f63ad375ebb7aace237e5e56c2bb..4037c3c4ff54c0aab01718fe2f5ca0dec0f77a40 100644 (file)
--- 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