⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Commit b27a89f

Browse files
committed
fix makefile to compare commit hashes only
Otherwise, with signed commits, the latest-tag-HEAD comparison would always fail.
1 parent 0bd2890 commit b27a89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ changes_version="$(awk '/^[0-9]/ {print $0; exit}' "$changes_path")"
2929
config_opts="$(printf ' -c versionsort.suffix=-%s' alpha beta pre rc RC)"
3030
latest_tag="$(git $config_opts tag -l '[0-9]*' --sort=-v:refname | head -n1)"
3131
head_sha="$(git rev-parse HEAD)"
32-
latest_tag_sha="$(git rev-parse "$latest_tag")"
32+
latest_tag_sha="$(git rev-parse "${latest_tag}^{commit}")"
3333

3434
# Display a table of all the current version, tag, and HEAD commit information.
3535
echo $'\nThe VERSION must be the same in all locations, and so must the HEAD and tag SHA'

0 commit comments

Comments
 (0)