Skip to content

reword a commit : Feature not available for users using GPG #4658

Open
@joihn

Description

@joihn

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:

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

  1. open lazygit,
  2. select a commit (not the latest one), press r to reword,
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions