这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit view broken with log.showSignature=true #4733

@imgrant

Description

@imgrant

Description

  1. log.showSignature set to true in global git config (eg ~/.config/git/config)
  2. Click on a file from a commit in the commit view in GitLens
  3. A tab opens with the error message “The editor could not be opened because the file was not found.”
  4. Set log.showSignature to false, repeat, observe the commit view opens correctly

This seems like a regression, being the same issue as #1363 (“Error 'Unable to open compare', when git setting log.showsignature is active”), which was apparently fixed a while ago.

The ‘filename’ shown in the tab when the error message is displayed reads like the signature has been accidentally grepped into the SHA/filename, eg:

<filename> (Good "git" signature for user@example.com with ED25519 key SHA256:XXXXXX...) ←→ <filename> (4b0b7f3)

Whereas, when log.showSignature is false, the tab ‘filename’ looks like:

<filename> (48d30ca) ←→ <filename> (4b0b7f3)

GitLens Version

17.6.2

VS Code Version

Version: 2.0.34
VSCode Version: 1.99.3
Commit: 45fd70f3fe72037444ba35c9e51ce86a1977ac10
Date: 2025-10-29T06:51:29.202Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 25.0.0

Git Version

git version 2.50.1

Logs, Screenshots, Screen Captures, etc

GitLens

[2025-11-06 21:18:44.622] Warning(/path/to/git -c core.quotepath=false -c color.ui=false ls-tree -l Good "git" signature for user@example.com with ED25519 key SHA256:XXXXXX...
 -- path/to/file): fatal: Not a valid object name Good "git" signature for user@example.com with ED25519 key SHA256:XXXXXX...


[2025-11-06 21:18:44.622] Warning(/path/to/git -c core.quotepath=false -c color.ui=false -c log.showSignature=false show --textconv Good "git" signature for user@example.com with ED25519 key SHA256:XXXXXX...
:./path/to/file --): fatal: bad revision 'Good "git" signature for user@example.com with ED25519 key SHA256:XXXXXX...
:./path/to/file'

[2025-11-06 21:18:44.622] [GIT          ] [/path/to/repo] git show --textconv Good "git" signature for user@example.com with ED25519 key SHA256:XXXXXX...
:./path/to/file -- • bad revision 'Good "git" signature for user@example.com with ED25519 key SHA256:XXXXXX... • :./path/to/file' [14ms]

GitLens (Git)

2025-11-06 21:18:44.622 [info] [2025-11-06 21:18:44.622] [         14ms] [/path/to/repo] git show --textconv Good "git" signature for user@example.com with ED25519 key SHA256:XXXXXX...
:./path/to/file -- • FAILED
2025-11-06 21:18:44.622 [info] 
Error: fatal: bad revision 'Good "git" signature for user@example.com with ED25519 key SHA256:XXXXXX...
:./path/to/file'

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds to be looked at

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions