Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
robertodr
3 years agoOccasional Contributor
Git commit signing fails with `error: failed to fill whole buffer`
I've updated to Git 2.40.1 and it seems that broke commit signing. Prepending GIT_TRACE=2 to git commit gives as last message:
20:09:00.367459 run-command.c:655 trace: run_command: op...
robertodr
3 years agoOccasional Contributor
Running this:
SSH_AUTH_SOCK=~/.1password/agent.sock ssh-add -L | grep "$(git config user.signingkey)"
returns nothing, even though the output of SSH_AUTH_SOCK=~/.1password/agent.sock ssh-add -L
:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAeqrr+kvXVWD+BdrP49t8ul/wvKQyXQ/bavjT5JJoLK JumpCloud
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIODV5S21+jV0900ubPoYvdHol/xfbJjVhxayuMEFuPKo GitHub signing key
clearly contains the output of "$(git config user.signingkey)"
:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIODV5S21+jV0900ubPoYvdHol/xfbJjVhxayuMEFuPKo
And with the shim for ssh-keygen
:
```
git commit --allow-empty -m "foo" -S
error: Signing file /tmp/.git_signing_buffer_tmpNpihD5
Couldn't sign message (signer): communication with agent failed?
Signing /tmp/.git_signing_buffer_tmpNpihD5 failed: communication with agent failed?
fatal: failed to write commit object
```