aboutsummaryrefslogtreecommitdiffstats
path: root/testing/git-secret/dont-hide-gpg-output.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-09-26 16:23:50 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-09-26 16:25:06 +0200
commitfb9142d5f0df59f9a0e381e6b79829dd6b40c680 (patch)
tree3a348f8af96e03fe59c8319caa291718ae239850 /testing/git-secret/dont-hide-gpg-output.patch
parent9397682d64f1e7f23dcecd4f47fcf92ae7f2c1b0 (diff)
downloadaports-fb9142d5f0df59f9a0e381e6b79829dd6b40c680.tar.bz2
aports-fb9142d5f0df59f9a0e381e6b79829dd6b40c680.tar.xz
testing/git-secret: don't hide output, fix issue on gpg 2.2
Diffstat (limited to 'testing/git-secret/dont-hide-gpg-output.patch')
-rw-r--r--testing/git-secret/dont-hide-gpg-output.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/git-secret/dont-hide-gpg-output.patch b/testing/git-secret/dont-hide-gpg-output.patch
new file mode 100644
index 0000000000..a6045e9a87
--- /dev/null
+++ b/testing/git-secret/dont-hide-gpg-output.patch
@@ -0,0 +1,26 @@
+Goddamn, don't make troubleshooting impossible!
+
+--- a/src/_utils/_git_secret_tools.sh
++++ b/src/_utils/_git_secret_tools.sh
+@@ -279,8 +279,8 @@
+ if [[ ! -z "$passphrase" ]]; then
+ echo "$passphrase" | $base --batch --yes --no-tty --passphrase-fd 0 \
+ --passphrase-fd 0 --pinentry-mode loopback \
+- "$encrypted_filename" > /dev/null 2>&1
++ --quiet "$encrypted_filename"
+ else
+- $base "$encrypted_filename" > /dev/null 2>&1
++ $base "$encrypted_filename"
+ fi
+ }
+--- a/src/commands/git_secret_tell.sh
++++ b/src/commands/git_secret_tell.sh
+@@ -64,7 +64,7 @@
+ fi
+
+ # Importing public key to the local keychain:
+- $GPGLOCAL --import "$keyfile" > /dev/null 2>&1
++ $GPGLOCAL --import "$keyfile"
+ done
+
+ echo "done. ${emails[*]} added as someone who know(s) the secret."