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

Signed git-tag doesn't find default key

From
APAndy Parkins <andyparkins@gmail.com>
Date
Oct 20, 2006, 09:04 UTC
Message-ID
<200610201004.17263.andyparkins@gmail.com>
Hello,
I did this:

$ git tag -s adp-sign-tag gpg: skipped "Andy Parkins <andyparkins@gmail.com>": secret key not available gpg: signing failed: secret key not available failed to sign the tag with GPG.

I believe the problem is that I have used the comment field in my key's UID definition.

$ gpg --list-keys andy pub 1024D/4F712F6D 2003-08-14 uid Andy Parkins (Google) <andyparkins@gmail.com>

So when git-tag looks for "Andy Parkins <andyparkins@gmail.com>"; it's not found. The answer is (I think) to search only on the email address when looking for a key. I've simply changed git-tag to have

username=$(git-repo-config user.email)

However, this is clearly wrong as what it actually wants is the committer email. Am I safe to simply process the $tagger variable to extract it?

Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com
Next: Linus Torvalds
Message 1 of 3 in “Signed git-tag doesn't find default key”
  1. Andy ParkinsOct 20, 2006
  2. Linus TorvaldsOct 20, 2006
  3. Andy ParkinsOct 20, 2006

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.