From fcd3cdd5d6fee2eb51787a0a969c636d870804b0 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 14 Jun 2017 12:22:28 +0200 Subject: [PATCH] use git rev-parse for repoid 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 --- PVE/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Makefile b/PVE/Makefile index ac230fbf..33c110be 100644 --- a/PVE/Makefile +++ b/PVE/Makefile @@ -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