]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
set --trust-model=always when encrypting
authorJoey Hess <joey@kitenet.net>
Mon, 16 Sep 2013 19:45:10 +0000 (15:45 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 16 Sep 2013 19:45:10 +0000 (15:45 -0400)
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

git-remote-gcrypt

index bb19652175aefb820cc2dc07aee8aba2c4bc69d1..182c5cb7c09e06cb076ffbc74fab4f5fbe75a210 100755 (executable)
@@ -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