From 9fc8e49d9d2c5516c38b47208b1b78cb0f04e906 Mon Sep 17 00:00:00 2001 From: vadym Date: Mon, 12 Dec 2022 10:50:34 +0200 Subject: [PATCH] unified commit hash in version which was vary for different build platforms --- contrib/semver/version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/semver/version.sh b/contrib/semver/version.sh index d2ec6ce1..2b61ed22 100644 --- a/contrib/semver/version.sh +++ b/contrib/semver/version.sh @@ -3,9 +3,9 @@ case "$*" in *--bare*) # Remove the "v" prefix - git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" | cut -c 2- + git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" --abbrev=7 | cut -c 2- ;; *) - git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" + git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" --abbrev=7 ;; esac