aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-remote-gcrypt3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index e12d355..df00ddc 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -364,6 +364,9 @@ read_config()
for recp_ in $conf_part
do
key_line=$(gpg --with-colons --fast-list -k "$recp_" | xgrep ^pub)
+ isnonnull "${key_line##*"$Newline"*}" ||
+ echo_info "WARNING: '$recp_' matches multiple keys, using one"
+ key_line=${key_line%%"$Newline"*}
keyid_=$(xecho "$key_line" | cut -f 5 -d :)
isnonnull "$keyid_" &&