Skip to content

Reword loads incorrect commit message/description with commit signing #3425

@chenasraf

Description

@chenasraf

Describe the bug
Since I sign my commits via SSH (not sure if this reproduces with regular GPG signing), rewording a commit will prompt with the new commit message & description, but will incorrectly place values. It actually uses the signature verification as the message, and the message as the description, possibly losing the description. Here is a visible example:

Commit info:
image

Rewording said commit:
image

To Reproduce
Steps to reproduce the behavior:

  1. Enable SSH signing for your git setup
  2. Make any commit
  3. Attempt to reword said commit
  4. See the message/description values

Version info:
LazyGit version: commit=3675570a391b1a49ddd198b4c7e71e17701d4404, build date=2024-03-23T09:09:11Z, build source=binaryRelease, version=0.41.0, os=darwin, arch=amd64, git version=2.39.3 (Apple Git-146)
Git version: git version 2.39.3 (Apple Git-146)

Additional context

Related Git config:

log.showsignature=true
gpg.format=ssh
gpg.ssh.allowedsignersfile=~/.ssh/allowed_signers
commit.gpgsign=true
user.signingkey=[[MASKED]]

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