]> git.proxmox.com Git - pve-firewall.git/commitdiff
build: use git rev-parse for GITVERSION
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 8 Mar 2018 12:33:56 +0000 (13:33 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 8 Mar 2018 12:51:25 +0000 (13:51 +0100)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Makefile

index 94702763c734d44af5552a43a392254d7b78413c..dd551f33b555a8fabcd5cee449a27b3285dda55e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ MAN1DIR=${MANDIR}/man1/
 PERLDIR=${PREFIX}/share/perl5
 
 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