Package: git-remote-gcrypt Version: 0.20130908-7 Severity: important Tags: patch
Thanks for maintaining git-remote-gcrypt! When attempting to connect to a remote, I get the following... git remote update Fetching origin + [ x/run/user/1000/keyring/gpg:0:1 != x ] + gpg --no-tty --armor --gen-rand 1 9 + set +x gcrypt: Development version -- Repository format MAY CHANGE gcrypt: Decrypting manifest + [ x/run/user/1000/keyring/gpg:0:1 != x ] + gpg --no-tty --status-fd 3 -q -d gpg: anonymous recipient; trying secret key 0123456789ABCDEF ... gpg: Sorry, no terminal at all requested - can't get input gcrypt: Failed to decrypt manifest! error: Could not fetch origin I don't understand why it doesn't use GPG_AGENT_INFO ... other programs have no trouble using it. I don't think there's any particularly strange configuration on my part... If I unset GPG_AGENT_INFO it prompts me directly multiple times, but does work... if I add --use-agent it also works, so here's a patch to try that, not sure if it has other consequences: From 72b3ce94c2f15e77b28c4bc32a04e1e6646897f1 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Tue, 25 Nov 2014 14:02:11 -0800 Subject: [PATCH] Pass --use-agent to gpg in addition to --no-tty, otherwise gpg may warn: gpg: Sorry, no terminal at all requested - can't get input gcrypt: Failed to decrypt manifest! --- git-remote-gcrypt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-remote-gcrypt b/git-remote-gcrypt index 8d68669..51bf46c 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -371,7 +371,7 @@ rungpg() # due to trying to print messages to it, even if a gpg agent is set # up. --no-tty fixes this. if [ "x$GPG_AGENT_INFO" != "x" ]; then - gpg --no-tty "$@" + gpg --no-tty --use-agent "$@" else gpg "$@" fi -- 2.1.3 live well, vagrant -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing'), (120, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 armhf Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages git-remote-gcrypt depends on: ii git 1:2.1.3-1 ii gnupg 1.4.18-4 ii gnupg2 2.0.26-3 Versions of packages git-remote-gcrypt recommends: ii curl 7.38.0-3 ii rsync 3.1.1-2+b1 git-remote-gcrypt suggests no packages. -- no debconf information
signature.asc
Description: PGP signature

