]> git.ipfire.org Git - thirdparty/git.git/commit
gpg: do show gpg's error message upon failure
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 15 Feb 2023 05:58:34 +0000 (05:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Feb 2023 16:55:24 +0000 (08:55 -0800)
commitad6b320756d8d9150291c696a02c86d1c2f0f4b2
tree1efd328960fdc24c9e74faadbf740d0ccb72e269
parent8300d15d5ecea1e41b2b1d381238ccaaec501dd4
gpg: do show gpg's error message upon failure

There are few things more frustrating when signing a commit fails than
reading a terse "error: gpg failed to sign the data" message followed by
the unsurprising "fatal: failed to write commit object" message.

In many cases where signing a commit or tag fails, `gpg` actually said
something helpful, on its stderr, and Git even consumed that, but then
keeps mum about it.

Teach Git to stop withholding that rather important information.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gpg-interface.c
t/t7510-signed-commit.sh