Bug 9982

Summary: gpg sometimes fails to find secret key for default user-id.
Product: Sisyphus Reporter: Sir Raorn <raorn>
Component: git-coreAssignee: placeholder <placeholder>
Status: ASSIGNED --- QA Contact: qa-sisyphus
Severity: minor    
Priority: P2 CC: glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
0001-gpg-sometimes-fails-to-find-secret-key-for-default-user-id.txt none

Description Sir Raorn 2006-09-12 11:53:04 MSD
$ 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 Sir Raorn 2006-09-12 11:53:35 MSD
Created attachment 1621 [details]
0001-gpg-sometimes-fails-to-find-secret-key-for-default-user-id.txt
Comment 2 Dmitry V. Levin 2006-09-12 14:10:38 MSD
I'm not sure that gnupg match algorithm is reasoned enough to patch git.