aboutsummaryrefslogtreecommitdiffstats
path: root/testing/git-secret/dont-hide-gpg-output.patch
blob: a6045e9a87f01e53430a6c93ae0a1b72d0f16198 (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
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."