[pve-devel] [PATCH 4/4] bsys: fix git HEAD parse to reflect actual build commit

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Dec 10 17:42:32 CET 2018


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d3be0d3..ad27550 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ CFLAGS= -shared -fPIC -O2 -Werror -Wtype-limits -Wall -Wl,-z,relro \
 PERLSODIR=$(PERL_INSTALLVENDORARCH)/auto
 
 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
 DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
-- 
2.19.2





More information about the pve-devel mailing list