]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
Disable keyring when using symmetric crypto
authorroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
committerroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
git-remote-gcrypt

index 1f1e6446ce092cc6aa5864fb52e6e3da861f8cbb..2bdfbfb3dfc6609cbf42a6663a20130062332226 100755 (executable)
@@ -177,7 +177,8 @@ CLEARSIGN()
 DECRYPT()
 {
        (printf "%s" "$MASTERKEY" | \
-               gpg -q --batch --passphrase-fd 0 --output - -d /dev/fd/3) 3<&0
+               gpg -q --batch --no-default-keyring --keyring /dev/null \
+                       --passphrase-fd 0 --output - -d /dev/fd/3) 3<&0
 }
 
 # Append $2 to $1 with a newline separator