Skip to content

fix: show Git diagnostics for refused probes - #34

Open
llbbl wants to merge 1 commit into
mainfrom
llbbl/fix-git-probe-error
Open

llbbl wants to merge 1 commit into
mainfrom
llbbl/fix-git-probe-error

Conversation

@llbbl

@llbbl llbbl commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

When Git refuses a probe, import and link now include Git's first stderr line in the affected refusal reason in both human and JSON reports. This exposes causes such as dubious ownership or a missing HEAD object while preserving the existing verdicts, exit codes, and write gates.

The probe captures at most 512 bytes, discards overflow, removes control and Unicode formatting characters, and repairs split UTF-8. Successful and conclusive negative answers discard diagnostics.

Verification

  • just check passed with the pinned toolchain and CI Git configuration isolation, including lint, build, static analysis, tests, race tests, and coverage floors.
  • Disposable fixtures exercise CLI refusals and confirm preserved file contents and ordinary negative behavior.
  • Independent Go review passed in round 1. All 25 scratch mutations failed at their intended assertions after uncached green baselines.

Closes #26

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.

fix: show git's error when a commit probe cannot answer

1 participant