On Sat, Oct 27, 2007 at 07:20:57PM +0200, Guido Guenther wrote: > after "apt-get install gnupg-agent pinentry-curses" and logging into X > again signing tags with a now running gpg-agent fails with: > > $ git-tag -s -u 3f3e6426 -m foo bar > > You need a passphrase to unlock the secret key for > user: "Guido Guenther <[EMAIL PROTECTED]>" > 1024-bit DSA key, ID 0x9FCF2CCD3F3E6426, created 1999-09-27 > > gpg: cancelled by user > gpg: skipped "3f3e6426": bad passphrase > gpg: signing failed: bad passphrase > error: gpg failed to sign the tag > fatal: unable to sign the tag > > But when I sign another file first (so gpg-agent won't ask for a > passphrase) and then invoke the same command: > > $ git-tag -s -u 3f3e6426 -m foo bar > > You need a passphrase to unlock the secret key for > user: "Guido Guenther <[EMAIL PROTECTED]>" > 1024-bit DSA key, ID 0x9FCF2CCD3F3E6426, created 1999-09-27 > > ...everything's fine. It seems the pinentry-curses interface can't > be fired up by gpg-agent to ask for the passphrase. If I also install > pinentry-gtk2 everything works fine too since not curses but a gtk2 > dialog is being used to ask for the passphrase.
Hi Guido, git uses gpg in a pipeline to create a detached signature for data from stdin, writing to stdout. I guess pinentry-curses wants to use stdin and stdout to interface with the user. $ echo foo |gpg -bsa >sig works fine without a gpg agent, if it doesn't work with gpg-agent and pinentry-curses, I'd say that's a bug in gpg-agent and/or pinentry-curses, can you please check? Thanks, Gerrit. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

