aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-09-16 15:45:10 -0400
committerJoey Hess <joey@kitenet.net>2013-09-16 15:45:10 -0400
commit912a827570fd01d27c8d6bb8b8aaae8c455488b9 (patch)
tree3fbb9e5dad692a5efb3f927795d79899b403ead6
parent79b997382a2dfe628117d0485ad8dc01e9fc4f5b (diff)
downloadgit-remote-gcrypt-912a827570fd01d27c8d6bb8b8aaae8c455488b9.zip
git-remote-gcrypt-912a827570fd01d27c8d6bb8b8aaae8c455488b9.tar.gz
git-remote-gcrypt-912a827570fd01d27c8d6bb8b8aaae8c455488b9.tar.bz2
set --trust-model=always when encrypting
Otherwise gpg may prompt to verify if we want to encrypt to users who do not have a defined trust level. But, the participants setting explicitly listed them, so we know we want to encrypt to them. closes #3
-rwxr-xr-xgit-remote-gcrypt4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index bb19652..182c5cb 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -313,7 +313,7 @@ CLEAN_FINAL()
ENCRYPT()
{
- gpg --batch --force-mdc --compress-algo none --passphrase-fd 3 -c 3<<EOF
+ gpg --batch --force-mdc --compress-algo none --trust-model=always --passphrase-fd 3 -c 3<<EOF
$1
EOF
}
@@ -333,7 +333,7 @@ PRIVENCRYPT()
if isnonnull "$Conf_signkey"; then
set -- "$@" -u "$Conf_signkey"
fi
- gpg --compress-algo none -se "$@"
+ gpg --compress-algo none --trust-model=always -se "$@"
}
# $1 is the match for good signature, $2 is the textual signers list