]> git.proxmox.com Git - pve-firmware.git/commitdiff
build: use 'git rev-parse' for GITVERSION
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 15 Sep 2017 07:36:28 +0000 (09:36 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 27 Sep 2017 08:18:30 +0000 (10:18 +0200)
Makefile

index 7f8a893279e3dbe2bb3b892bae2c2239fbda3229..4575acc5649382cb3aed1c015e1ef758f022b5e6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ FW_VER=2.0
 FW_REL=2
 FW_DEB=pve-firmware_${FW_VER}-${FW_REL}_all.deb
 
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)