gpg-interface: check gpg signature creation status
commitefee9553a4f97b2ecd8f49be19606dd4cf7d9c28
authorMichael J Gruber <git@drmicha.warpmail.net>
Fri, 17 Jun 2016 23:38:59 +0000 (17 19:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Jun 2016 00:03:57 +0000 (17 17:03 -0700)
tree1d1e5054f8de93e8ce06ba356336153e557e293c
parent0581b546419627d4e82f7df8b195fa207ef42f6a
gpg-interface: check gpg signature creation status

When we create a signature, it may happen that gpg returns with
"success" but not with an actual detached signature on stdout.

Check for the correct signature creation status to catch these cases
better. Really, --status-fd parsing is the only way to check gpg status
reliably. We do the same for verify already.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gpg-interface.c
t/t7004-tag.sh