[pve-devel] [PATCH firewall 6/6] build: use git rev-parse for GITVERSION
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Mar 8 13:33:56 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 9470276..dd551f3 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ MAN1DIR=${MANDIR}/man1/
PERLDIR=${PREFIX}/share/perl5
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
--
2.14.2
More information about the pve-devel
mailing list