From e2c5546b5d0290dbeba7018bd21ff2931ae8310a Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 4 Jul 2016 17:35:11 +0900 Subject: GCRYPT_GPG_ARGS env var -> gcrypt.gpg-args conf --- git-remote-gcrypt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'git-remote-gcrypt') diff --git a/git-remote-gcrypt b/git-remote-gcrypt index 54db709..bba6a22 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -372,9 +372,9 @@ rungpg() # 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 "${GCRYPT_GPG_ARGS:-}" "$@" + ${GPG} --no-tty "${Conf_gpg_args:-}" "$@" else - ${GPG} "${GCRYPT_GPG_ARGS:-}" "$@" + ${GPG} "${Conf_gpg_args:-}" "$@" fi } @@ -409,6 +409,7 @@ read_config() git config --get gcrypt.participants '.+' || :) Conf_pubish_participants=$(git config --get --bool "remote.$NAME.gcrypt-publish-participants" '.+' || git config --get --bool gcrypt.publish-participants || :) + Conf_gpg_args=$(git config --get gcrypt.gpg-args '.+' || :) # Figure out which keys we should encrypt to or accept signatures from if isnull "$conf_part" || iseq "$conf_part" simple -- cgit v1.2.3