Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git-tag -s can't find GPG private key

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:48:07

"Mike.lifeguard" [off-list ref] writes:
It seems that when the GPG key name and user.name in git's config are
different, git can't find the appropriate private key to sign the tag.
Git should attempt to use user.email to find the key. Setting
user.signingkey is of course a workaround.
user.signingkey was devised for this exact case, and I don't think it is a
work-around.

I do not think "should attempt" is a correct attitude, even though I can
100% agree with "it would have been nicer if it attempted to do this from
day one".  You are unfortunately not interacting with git codebase in
early 2005 anymore and there are thousands if not millions of existing
users you should worry about.

Using user.email changes the behaviour for people who do not want a key
that has the same e-mail address, and because the choice of key is all
about security, the logic to choose which one shouldn't be changed
lightly.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help