mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 03:57:40 +00:00
build: ensure REPOID has a length of 8
because unlike the git-rev-parse man page says, the default length is actually calculated based on the number of packed objects in the clone of the repository. we don't want this to depend on the build environment and how the repository was cloned there, so fix a length of 8 for now. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> (cherry picked from commit d0ad008702ecea7f5194b797748adc746de2da86)
This commit is contained in:
parent
a0f4e1d543
commit
a946e039d5
@ -14,7 +14,7 @@ PERLSOURCE = \
|
||||
|
||||
all: pvecfg.pm ${SUBDIRS}
|
||||
|
||||
REPOID=$(shell git rev-parse --short HEAD)
|
||||
REPOID=$(shell git rev-parse --short=8 HEAD)
|
||||
|
||||
pvecfg.pm: pvecfg.pm.in
|
||||
sed -e s/@VERSION@/${VERSION}/ -e s/@PACKAGERELEASE@/${PACKAGERELEASE}/ -e s/@PACKAGE@/${PACKAGE}/ -e s/@REPOID@/${REPOID}/ $< >$@.tmp
|
||||
|
Loading…
Reference in New Issue
Block a user