git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: backdated tag bug

From
Eric Blake <ebb9@byu.net>
Date
Apr 11, 2008, 20:54 UTC
Message-ID
<loom.20080411T204008-458@post.gmane.org>
In-Reply-To
<alpine.LFD.1.00.0804111333270.3143@woody.linux-foundation.org>
Linus Torvalds <torvalds <at> linux-foundation.org> writes:
> > According to 'git tag --help', it should be possible to create a signed, 
back-
> > dated tag.  But I can't get it to work.  Am I doing something wrong, or is 
this 
Show 5 quoted lines
> > a git bug?  Shell transcript follows:
> 
> Tags don't have an "author". They have a "tagger", and it's taken from the 
> normal committer information. So you should use GIT_COMMITTER_DATE instead 
> of GIT_AUTHOR_DATE and it should work.

Thanks. At first, I thought it failed: the only human-readable date string in the output of 'git tag -v v1' was the date of the gpg signature, which was of course today. But on closer inspection, the raw seconds listing in the tagger line was indeed older, and 'git show v1' shows the desired human-readable back- date of yesterday. So, can we get the 'git tag' documentation fixed to mention GIT_COMMITTER_DATE, and can 'git tag -v' be improved to show the tagger date in human-readable form?

And I still think it would be nice if 'git mktag --help' mentioned how to use gpg to create a valid signed tag, rather than just vaguely stating that it can be done, since I couldn't figure out how to create a tag signature file that would pass subsequent verification.

-- 
Eric Blake
Previous: Linus TorvaldsNext: Björn Steinbrink
Message 3 of 4 in “backdated tag bug”
  1. Eric BlakeApr 11, 2008
  2. Linus TorvaldsApr 11, 2008
  3. Eric BlakeApr 11, 2008
  4. Fix section about backdating tags in the git-tag docsBjörn Steinbrink, Apr 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.