]> git.proxmox.com Git - pve-manager.git/commitdiff
use git rev-parse for repoid
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 14 Jun 2017 10:22:28 +0000 (12:22 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 14 Aug 2017 11:45:43 +0000 (13:45 +0200)
instead of getting the repoid from .git/refs/heads/master

using HEAD as commit also means we get the correct commit hash for when
building the package (e.g. when building from stable-4)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit a09735e0b52f57c440c81b5d3b3f3dfea11e5345)

PVE/Makefile

index ac230fbfd963db5ad3ad07bf08cb76873003a92d..33c110be89ed137e22dbe8a6c5e99fdb424a9913 100644 (file)
@@ -14,7 +14,7 @@ PERLSOURCE =                  \
 
 all: pvecfg.pm ${SUBDIRS}
 
-REPOID=`../repoid.pl ../.git`
+REPOID=$(shell git rev-parse --short HEAD)
 
 pvecfg.pm: pvecfg.pm.in
        sed -e s/@VERSION@/${VERSION}/ -e s/@PACKAGERELEASE@/${PACKAGERELEASE}/ -e s/@PACKAGE@/${PACKAGE}/ -e s/@REPOID@/${REPOID}/ $< >$@.tmp