]> git.proxmox.com Git - lxc.git/commitdiff
buildsys: GITVERSION fixup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 30 Mar 2018 07:50:10 +0000 (09:50 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 30 Mar 2018 07:50:10 +0000 (09:50 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Makefile

index 3f9aecb99f5274fd795442a1f95e2b8a0781de06..0813cc2d53b523fe691f40a8758e94f956ce1770 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ SRCDIR=lxc
 BUILDSRC := $(SRCDIR).tmp
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB1=${PACKAGE}_${LXCVER}-${DEBREL}_${ARCH}.deb
 DEB2=${PACKAGE}-dev_${LXCVER}-${DEBREL}_${ARCH}.deb \