aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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
}