jesseduffield / jesseduffield/lazygit

reword a commit : Feature not available for users using GPG

Open
#4,658 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**
error when reword a commit that is not the latest one, and GPG commit signing is enabled

Image

Surprisingly, it only happens with normal reword,
**if I use lazygit feature "reword in the editor" it works smoothly**

**To Reproduce**
Steps to reproduce the behavior:

1.
configure your git to sign commit

vim ~/.gitconfig
```
[user]
name = redacted
email = redacted
signingkey = /home/redacted/.ssh/id_ed25519.pub
[gpg]
format = ssh
[commit]
gpgsign = true
[gpg "ssh"]
allowedSignersFile = /home/redacted/.config/git/allowed_signers
[core]
excludesfile = /home/redacted/.gitignore_global

```

2. open lazygit,
3. select a commit (not the latest one), press `r` to reword,
4. See error

**Expected behavior**
reword should work
**Screenshots**

**Version info:**
git version 2.34.1

lazygit:
commit=611fabde11d24d9acc71ee26077b9a1101f59f27, build date=2024-09-18T10:56:10Z, build source=binaryRelease, version=0.44.1, os=linux, arch=amd64, git version=2.34.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.