build: use git rev-parse for GITVERSION

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2018-03-13 10:46:41 +01:00 committed by Thomas Lamprecht
parent 28e6daaa0b
commit 80b368960e

View File

@ -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