Bug 9982 - gpg sometimes fails to find secret key for default user-id.
Summary: gpg sometimes fails to find secret key for default user-id.
Status: ASSIGNED
Alias: None
Product: Sisyphus
Classification: Development
Component: git-core (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 11:53 MSD by Sir Raorn
Modified: 2006-09-12 14:10 MSD (History)
3 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
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.