]> git.proxmox.com Git - pve-manager.git/commitdiff
build: use git rev-parse for GITVERSION
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 13 Mar 2018 09:46:41 +0000 (10:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Mar 2018 10:06:12 +0000 (11:06 +0100)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Makefile

index 532833aa4488a3b4027cc839b6f21447bb91d3c9..6cf32a95de94b69016e76f65f31931201b128344 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ DESTDIR=
 SUBDIRS = aplinfo PVE bin www
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${VERSION}-${PACKAGERELEASE}_${ARCH}.deb