aboutsummaryrefslogtreecommitdiffstats
path: root/git-remote-gcrypt
diff options
context:
space:
mode:
Diffstat (limited to 'git-remote-gcrypt')
-rwxr-xr-xgit-remote-gcrypt16
1 files changed, 5 insertions, 11 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index cb3dfea..37df237 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -288,16 +288,6 @@ CLEAN_FINAL()
fi
}
-addsignkeyparam()
-{
- if isnull "$Conf_signkey"; then
- "$@"
- else
- "$@" -u "$Conf_signkey"
- fi
-}
-
-
ENCRYPT()
{
gpg --batch --force-mdc --compress-algo none --passphrase-fd 3 -c 3<<EOF
@@ -316,7 +306,11 @@ EOF
# Encrypt to recipients $1
PRIVENCRYPT()
{
- addsignkeyparam gpg --compress-algo none -se $1
+ set -- $1
+ if isnonnull "$Conf_signkey"; then
+ set -- "$@" -u "$Conf_signkey"
+ fi
+ gpg --compress-algo none -se "$@"
}
# $1 is the match for good signature, $2 is the textual signers list