[pve-devel] [PATCH v4 qemu-server 01/10] buildsys: use git rev-parse HEAD for GITVERSION

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Mar 1 12:44:08 CET 2018


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 
-- 
2.11.0





More information about the pve-devel mailing list