Skip to content

Stop git's error messages from printing on every test run - #64

Merged
chrisguidry merged 1 commit into
mainfrom
quiet-git
Nov 19, 2026
Merged

chrisguidry merged 1 commit into
mainfrom
quiet-git

Conversation

@chrisguidry

Copy link
Copy Markdown
Owner

To find the codebase's version, the plugin runs git rev-parse, and it let git write to the terminal. Outside a git repository, every pytest run printed fatal: not a git repository, and in a repository without commits it printed git's complaint about HEAD. The plugin already reports both cases in service.version, so it now discards git's stderr.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P7t1QcSqKZ51Ko2DSwvk1H

To find the codebase's version, the plugin runs `git rev-parse`, and it
let git write to the terminal. Outside a git repository, every pytest
run printed `fatal: not a git repository`, and in a repository without
commits it printed git's complaint about `HEAD`. The plugin already
reports both cases in `service.version`, so it now discards git's
stderr.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P7t1QcSqKZ51Ko2DSwvk1H
@chrisguidry
chrisguidry merged commit d6d87cc into main Nov 19, 2026
11 checks passed
@chrisguidry
chrisguidry deleted the quiet-git branch November 19, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant