From b27a89f683cda85ebd78243c055e876282df89ee Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 22 Sep 2023 09:37:09 +0200 Subject: [PATCH] fix makefile to compare commit hashes only Otherwise, with signed commits, the latest-tag-HEAD comparison would always fail. --- check-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-version.sh b/check-version.sh index 6d10d6785..c50bf498b 100755 --- a/check-version.sh +++ b/check-version.sh @@ -29,7 +29,7 @@ changes_version="$(awk '/^[0-9]/ {print $0; exit}' "$changes_path")" config_opts="$(printf ' -c versionsort.suffix=-%s' alpha beta pre rc RC)" latest_tag="$(git $config_opts tag -l '[0-9]*' --sort=-v:refname | head -n1)" head_sha="$(git rev-parse HEAD)" -latest_tag_sha="$(git rev-parse "$latest_tag")" +latest_tag_sha="$(git rev-parse "${latest_tag}^{commit}")" # Display a table of all the current version, tag, and HEAD commit information. echo $'\nThe VERSION must be the same in all locations, and so must the HEAD and tag SHA'