Bug 9982 - gpg sometimes fails to find secret key for default user-id.
: gpg sometimes fails to find secret key for default user-id.
Status: ASSIGNED
: Sisyphus
(All bugs in Sisyphus/git-core)
: unstable
: all Linux
: P2 minor
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2006-09-12 11:53 by
Modified: 2006-09-12 14:10 (History)


Attachments
0001-gpg-sometimes-fails-to-find-secret-key-for-default-user-id.txt (1.06 KB, patch)
2006-09-12 11:53, Sir Raorn
no flags Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-09-12 11:53:04
$ git-tag -s -m test test     
gpg: skipped "Sir Raorn <raorn@...>": secret key not available
gpg: signing failed: secret key not available
failed to sign the tag with GPG.
[1]    28905 exit 1     git-tag -s -m test test

$ expr "z$(git-var GIT_COMMITTER_IDENT)" : 'z\(.*>\)'       
Sir Raorn <raorn@...>

$ gpg --list-secret-keys 'Sir Raorn <raorn@..>'        
gpg: error reading key: secret key not available
[1]    28931 exit 2     gpg --list-secret-keys 'Sir Raorn <raorn@..>'

$ gpg --list-secret-keys 'Alexey I. Froloff <raorn@..>'
gpg: error reading key: secret key not available
[1]    28933 exit 2     gpg --list-secret-keys 'Alexey I. Froloff <raorn@..>'

$ gpg --list-secret-keys 'Alexey I. Froloff (Sir Raorn) <raorn@..>'            
                            
...
uid                  Alexey I. Froloff (Sir Raorn) <raorn@..>
...


Patch attached.
------- Comment #1 From 2006-09-12 11:53:35 -------
Created an attachment (id=1621) [details]
0001-gpg-sometimes-fails-to-find-secret-key-for-default-user-id.txt
------- Comment #2 From 2006-09-12 14:10:38 -------
I'm not sure that gnupg match algorithm is reasoned enough to patch git.