git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] Make GPG errors less puzzling

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Feb 15, 2023, 05:58 UTC
Message-ID
<pull.1480.git.1676440714.gitgitgadget@gmail.com>

For one times too many, I was asked to help with a commit signing problem where the only error message was an unhelpful:

error: gpg failed to sign the data fatal: failed to write commit object

That was it. No further indication what went wrong. And certainly not that wonderful error message that the helper that was configured as gpg.program wrote to its stderr.

Let's show whatever GPG (or any alternative configured via gpg.program) had to say when signing failed.

Johannes Schindelin (2):
  t7510: add a test case that does not need gpg
  gpg: do show gpg's error message upon failure
 gpg-interface.c          |  8 ++++++--
 t/t7510-signed-commit.sh | 44 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 2 deletions(-)
base-commit: 23c56f7bd5f1667f8b793d796bf30e39545920f6
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1480%2Fdscho%2Fmake-gpg-errors-less-puzzling-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1480/dscho/make-gpg-errors-less-puzzling-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1480
-- 
gitgitgadget
Next: Johannes Schindelin via GitGitGadget
Message 1 of 4 in “Make GPG errors less puzzling”
  1. 0/2 Make GPG errors less puzzlingJohannes Schindelin via GitGitGadget, Feb 15, 2023
  2. 2/2 gpg: do show gpg's error message upon failureJohannes Schindelin via GitGitGadget, Feb 15, 2023
  3. Junio C HamanoFeb 15, 2023
  4. 1/2 t7510: add a test case that does not need gpgJohannes Schindelin via GitGitGadget, Feb 15, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.