build: use 'git rev-parse' for GITVERSION
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 6 Sep 2017 07:36:41 +0000 (09:36 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 6 Sep 2017 07:36:41 +0000 (09:36 +0200)
Makefile

index 1eb7ce2..eb70554 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ MAN1DIR=${MANDIR}/man1/
 PERLDIR=${PREFIX}/share/perl5
 
 ARCH=all
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb