aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2016-07-04 18:30:51 +0900
committerSean Whitton <spwhitton@spwhitton.name>2016-07-04 18:30:51 +0900
commitf2514159458c8e92ad058bcca0df8e057d893a84 (patch)
tree1d8d15435b4374c6511cfe3b8d7771c19a3a605a
parent02db779ca08ef8bf4d5db9c56fddc655693f907e (diff)
downloadgit-remote-gcrypt-f2514159458c8e92ad058bcca0df8e057d893a84.tar.gz
pass gcrypt.gpg-args most robustly
-rwxr-xr-xgit-remote-gcrypt7
1 files changed, 5 insertions, 2 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index c9c4102..667ab44 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -368,13 +368,16 @@ gpg_hash()
rungpg()
{
+ if isnonnull "$Conf_gpg_args"; then
+ set -- "$Conf_gpg_args" "$@"
+ fi
# gpg will fail to run when there is no controlling tty,
# due to trying to print messages to it, even if a gpg agent is set
# up. --no-tty fixes this.
if [ "x$GPG_AGENT_INFO" != "x" ]; then
- ${GPG} --no-tty "${Conf_gpg_args:-}" "$@"
+ ${GPG} --no-tty "$@"
else
- ${GPG} "${Conf_gpg_args:-}" "$@"
+ ${GPG} "$@"
fi
}