]> git.proxmox.com Git - pve-cluster.git/commitdiff
buildsys: use git rev-parse to retrieve commit
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 19 Feb 2018 10:52:06 +0000 (11:52 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 19 Feb 2018 10:52:06 +0000 (11:52 +0100)
Makefile

index 68260c7360733d94952e7a3b3aef6a9683bd6bc3..ef6dcd32cd0991cb23aa42433e6098a3f60cb519 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ PKGVER=5.0
 PKGREL=20
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
 DBG_DEB=${PACKAGE}-dbgsym_${PKGVER}-${PKGREL}_${ARCH}.deb