Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer peeled hashes for tags #20

Merged
merged 1 commit into from
Jul 23, 2023
Merged

Prefer peeled hashes for tags #20

merged 1 commit into from
Jul 23, 2023

Conversation

sudo-bmitch
Copy link
Owner

Fixes issue

Hashes for git tags are for the signed/annotated tag itself and not the underlying commit.

Describe the change

The go-git library added hashes for the peeled commit in their v5.7.0 release. This prefers those hashes when available.

How to verify it

Getting a version for a git tag will not return the expected hash.

Changelog text

  • Switch git tag hashes to the underlying commit hash

Please verify and check that the pull request fulfills the following requirements

  • Tests have been added or not applicable
  • Documentation has been added, updated, or not applicable
  • Changes have been rebased to main
  • Multiple commits to the same code have been squashed

Signed-off-by: Brandon Mitchell <[email protected]>
@sudo-bmitch sudo-bmitch merged commit 21fe00e into main Jul 23, 2023
4 checks passed
@sudo-bmitch sudo-bmitch deleted the pr-git-peeled-tags branch July 23, 2023 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant