]> git.ipfire.org Git - thirdparty/git.git/commit - t/lib-gpg.sh
t/lib-gpg: fix gpgconf stderr redirect to /dev/null
authorTodd Zullinger <tmz@pobox.com>
Mon, 13 Nov 2017 21:07:45 +0000 (16:07 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Nov 2017 02:51:35 +0000 (11:51 +0900)
commit4c180f60a47f250b7c75151f8536ba56c7f1a8e2
tree27dedb8a89b45aa49fcdc3a32f57ae0d91c3fce5
parentfc849d8d6b90e5c1e0c37bc0d60dd92b2fe7347f
t/lib-gpg: fix gpgconf stderr redirect to /dev/null

In 29ff1f8f74 (t: lib-gpg: flush gpg agent on startup, 2017-07-20), a
call to gpgconf was added to kill the gpg-agent.  The intention was to
ignore all output from the call, but the order of the redirection needs
to be switched to ensure that both stdout and stderr are redirected to
/dev/null.  Without this, gpgconf from gnupg-2.0 releases would output
'gpgconf: invalid option "--kill"' each time it was called.

Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gpg.sh