blob: d106f1905224ed44a3f4415828d6914219765e1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From d548e548d8c4d03356cf576188715292091efe18 Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Tue, 26 Sep 2017 16:09:39 +0200
Subject: [PATCH 1/2] Fix providing passphrase to GPG to work with GPG 2.2+
---
src/_utils/_git_secret_tools.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/_utils/_git_secret_tools.sh b/src/_utils/_git_secret_tools.sh
index 882c0b2..9e4282b 100644
--- a/src/_utils/_git_secret_tools.sh
+++ b/src/_utils/_git_secret_tools.sh
@@ -446,7 +446,8 @@ function _decrypt {
fi
if [[ ! -z "$passphrase" ]]; then
- echo "$passphrase" | $base --batch --yes --no-tty --passphrase-fd 0 \
+ echo "$passphrase" | $base --batch --yes --no-tty \
+ --passphrase-fd 0 --pinentry-mode loopback \
"$encrypted_filename" > /dev/null 2>&1
else
$base --quiet "$encrypted_filename"
--
2.10.1 (Apple Git-78)
|