[pve-devel] [PATCH docs 2/2] buildsys: use git rev-parse for GITVERSION

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Feb 20 11:10:25 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 dc776ac..8b88b4a 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ MEDIAWIKI_PACKAGE=pve-docs-mediawiki
 # also update debian/changelog
 PKGREL=16
 
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
-- 
2.14.2





More information about the pve-devel mailing list