[GH-ISSUE #129] 'tagger' value should be assigned to both Author and Committer probably #12

Open
opened 2026-02-16 10:23:46 -05:00 by yindo · 0 comments
Owner

Originally created by @SagePtr on GitHub (Sep 19, 2018).
Original GitHub issue: https://github.com/go-gitea/git/issues/129

In cat-file output, regular commits have following keys:

author (one who wrote code and sent diff content)
committer (one who commited that code to repo or merged PR)

Tag commits have one key: tagger (which corresponds to user who made new tag)

Now, in repo_commit.go, function parseCommitData, tagger is assigned to commit.Author, and commit.Committer stays nil.

I think, for better compatibility, tagger should be assigned to both commit.Author and commit.Committer, because in this case tagger is both author of tag and committer of this tag.

This would also solve go-gitea/gitea#4961 issue when signatures are verified against Committer field, but Committer field is just nil for tag commit.

Originally created by @SagePtr on GitHub (Sep 19, 2018). Original GitHub issue: https://github.com/go-gitea/git/issues/129 In cat-file output, regular commits have following keys: author (one who wrote code and sent diff content) committer (one who commited that code to repo or merged PR) Tag commits have one key: tagger (which corresponds to user who made new tag) Now, in repo_commit.go, function parseCommitData, tagger is assigned to commit.Author, and commit.Committer stays nil. I think, for better compatibility, tagger should be assigned to both commit.Author and commit.Committer, because in this case tagger is both author of tag and committer of this tag. This would also solve go-gitea/gitea#4961 issue when signatures are verified against Committer field, but Committer field is just nil for tag commit.
yindo changed title from 'tagger' value should be assigned to both Author and Committer probably to [GH-ISSUE #129] 'tagger' value should be assigned to both Author and Committer probably 2026-06-05 16:30:43 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/git#12