Skip to content

Commit

Permalink
fix makefile to compare commit hashes only
Browse files Browse the repository at this point in the history
Otherwise, with signed commits, the latest-tag-HEAD comparison would always fail.
  • Loading branch information
Byron committed Sep 22, 2023
1 parent 0bd2890 commit b27a89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b27a89f

Please # to comment.