Skip to content

Conversation

@IanButterworth
Copy link
Member

When git show is run on an annotated tag, it outputs the tag object (including the full tag message) before the commit info. The --format option only formats the commit portion, causing the tag message to pollute the output and break datetime parsing.

Switch to git log -1 with ^{commit} suffix to dereference tags to their underlying commit, ensuring we only get the formatted date output.

Fixes #475

When git show is run on an annotated tag, it outputs the tag object
(including the full tag message) before the commit info. The --format
option only formats the commit portion, causing the tag message to
pollute the output and break datetime parsing.

Switch to git log -1 with ^{commit} suffix to dereference tags to their
underlying commit, ensuring we only get the formatted date output.

Fixes #475
@IanButterworth IanButterworth merged commit eb681a4 into master Jan 8, 2026
2 checks passed
@IanButterworth IanButterworth deleted the ib/fix branch January 8, 2026 15:54
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.

TagBot 1.24 error

2 participants