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

git citool / gui and signed commits

From
BABossert, Andre <anb0s@anbos.de>
Date
Jul 21, 2022, 14:21 UTC
Message-ID
<CALzBCsFjw3DfY=gbL+23XL0MwKJHv_-znSADfh7XBrmMv51hyg@mail.gmail.com>
Hello,
using commit and tag signing and now also enabled it as default.

To circumvent the necessity to commit every change on git bash in order to sign it, I chose to edit the global .gitconfig and set the following parameters:

```
[commit]
  gpgsign = true
[tag]
  gpgSign = true
```
Now using git gui the problem is, this only seems to work as expected if I
- amend changes to the previous commit
- create a new commit with the previous commit being **_not signed_**

In case I want to create a new commit and the previous commit is **_signed_** I fail with the following error:

```
child process exited abnormally
child process exited abnormally
    while executing
"close $fd_ot"
    (procedure "commit_committree" line 24)
    invoked from within
"commit_committree file1ed02482210
9a6a25477c6f52d405158e68974da5cf41afe5d6 .git/GITGUI_EDITMSG"
```

Workarounds are available, true - but "git citool" is pretty convenient to review changes before stashing them, add the message and commit in one go.

I'm trying to understand the tcl code but may be someone uses signing and has idea or more insights for me...

Regards Andre (anb0s) eMail: anb0s@anbos.de

Message 1 of 1 in “git citool / gui and signed commits”
  1. Bossert, AndreJul 21, 2022

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.