# git: Disable log.showSignature for internal commands \(\#55708\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b7d48ebcc45ae75c5f36f09d6bc8e3682661a731)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b7d48ebcc45ae75c5f36f09d6bc8e3682661a731

Requested commit: b7d48ebcc45ae75c5f36f09d6bc8e3682661a731

Commit: b7d48ebcc45ae75c5f36f09d6bc8e3682661a731

Tree: 4ed0a7af66d5531cba2956dfdef0494fd19d384c

Author: toddlerer

Committer: GitHub

## Message

```
git: Disable log.showSignature for internal commands (#55708)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #53604.

When `log.showSignature = true`, git prepends signature verification
lines to stdout before the `--format` output. The null-separated parsers
in `crates/git/src/repository.rs` weren't expecting that, so SHAs ended
up corrupted — the git graph detail panel showed "0 changed files" for
every commit, and file history was similarly broken.

Setting `-c log.showSignature=false` in `build_command` is the same
trick we already use for `core.fsmonitor`. It only affects
log/show/whatchanged, so other commands aren't touched.

Verified locally with an SSH-signed repo: before this change the detail
panel said "0 changed files"; after, the modified files show up
correctly.

Release Notes:

- git_graph: Fix breakage that occurs when `log.showSignature` is
enabled

---------

Co-authored-by: Anthony Eid <anthony@zed.dev>
```

## Parents

- [3bd9d13b63fc5a5ffa39326597bc4fd91adc82d1](https://git.cafe/gitcafe/zed/commit/3bd9d13b63fc5a5ffa39326597bc4fd91adc82d1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b7d48ebcc45ae75c5f36f09d6bc8e3682661a731?format=markdown)
