[pve-devel] [PATCH manager 7/8] build: use git rev-parse for GITVERSION
Fabian Grünbichler
f.gruenbichler at proxmox.com
Tue Mar 13 10:46:41 CET 2018
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 532833aa..6cf32a95 100644
--- 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
--
2.14.2
More information about the pve-devel
mailing list