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

Re: [PATCH 2/2] git-tag -s must fail if gpg is broken and cannot sign tags

From
Shawn O. Pearce <spearce@spearce.org>
Date
Sep 7, 2007, 04:58 UTC
Message-ID
<20070907045833.GZ18160@spearce.org>
In-Reply-To
<7vd4wwe2n5.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> "Shawn O. Pearce" <spearce@spearce.org> writes:
> 
> > "Shawn O. Pearce" <spearce@spearce.org> wrote:
> >> If the user has misconfigured `user.signingkey` in their .git/config
> >> or just doesn't have any secret keys on their keyring and they ask
> >> for a signed tag with `git tag -s` we better make sure the resulting
> >> tag was actually signed by gpg.
> 
> This seems to fail the test depending on the order processes
> happen to be scheduled.  I haven't looked at it closely yet.

That's not good. I noticed stepping through the code last night that if gpg is misconfigured (e.g. set a bad user.signingkey in .git/config) it will terminate and send SIGPIPE to git-tag, which makes it terminate.

All my change did was implement proper error handling. So if you are seeing failures now then we probably have a problem with the code without my patch too...

-- 
Shawn.
Previous: Junio C HamanoNext: Carlos Rica
Message 4 of 5 in “git-tag -s must fail if gpg is broken and cannot sign tags”
  1. 2/2 git-tag -s must fail if gpg is broken and cannot sign tagsShawn O. Pearce, Sep 6, 2007
  2. Shawn O. PearceSep 6, 2007
  3. Junio C HamanoSep 6, 2007
  4. Shawn O. PearceSep 7, 2007
  5. Carlos RicaSep 8, 2007

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.