From: Fabian Grünbichler Date: Mon, 19 Feb 2018 10:52:06 +0000 (+0100) Subject: buildsys: use git rev-parse to retrieve commit X-Git-Url: https://git.proxmox.com/?p=pve-cluster.git;a=commitdiff_plain;h=0d42a457f278fa17f4970c9de5849262a370b5ed buildsys: use git rev-parse to retrieve commit --- diff --git a/Makefile b/Makefile index 68260c7..ef6dcd3 100644 --- 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