From dbfe33e88b953504da337e47c3bb117a2aaea768 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 5 Jul 2016 09:40:14 -0400 Subject: [PATCH] comment --- ..._da93784aa66baad31f86231bf7cdce61._comment | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 doc/bugs/initremote_doesn__39__t_work_in_scripts/comment_1_da93784aa66baad31f86231bf7cdce61._comment diff --git a/doc/bugs/initremote_doesn__39__t_work_in_scripts/comment_1_da93784aa66baad31f86231bf7cdce61._comment b/doc/bugs/initremote_doesn__39__t_work_in_scripts/comment_1_da93784aa66baad31f86231bf7cdce61._comment new file mode 100644 index 0000000000..277a794995 --- /dev/null +++ b/doc/bugs/initremote_doesn__39__t_work_in_scripts/comment_1_da93784aa66baad31f86231bf7cdce61._comment @@ -0,0 +1,22 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2016-07-05T13:28:12Z" + content=""" +I tried running initremote without a tty, and it worked ok, +using the following test case: + + #!/bin/sh + set -e + cd /tmp/r + pwd + git annex initremote test type=directory directory=../d encryption=hybrid keyid=2512E3C7 --fast --debug >/dev/null + +So, I need more information to reproduce this. + +It seems likely that, if gpg is trying to read from the tty, it needs to +prompt for your key's passphrase for some reason. In which case setting +--batch would only make it fail differently. If you want to script +something that needs access to your gpg secret key, you need to configure +gpg to use a gpg agent. +"""]]