From f2514159458c8e92ad058bcca0df8e057d893a84 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 4 Jul 2016 18:30:51 +0900 Subject: pass gcrypt.gpg-args most robustly --- git-remote-gcrypt | 7 +++++-- 1 file 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 } -- cgit v1.2.3