Repository navigation
fix: distinguish missing vs corrupt git config errors - #1610
Merged
Merged
Conversation
`config_value()` was mapping all git config errors to `Ok(None)`, silently swallowing real problems like corrupt configs or permission denied. Now checks exit codes: exit 1 = key not found (Ok(None)), other codes = propagated error. Also fixes `clear_hint()` and `clear_default_branch_cache()` which had the same pattern with `--unset` (exit 5 = key not found). Closes #1580 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Verify that config_value() and clear_hint() propagate errors from corrupt git configs instead of silently returning Ok(None)/Ok(false). Co-Authored-By: Claude Opus 4.6 <[email protected]>
worktrunk-bot
added a commit
that referenced
this pull request
Mar 19, 2026
The review bot consistently performs full code analysis (10-18 minutes of CI compute) on self-authored PRs, only to stay silent because it cannot approve its own work. Observed 6 times across PRs #1610, #1613, #1614, #1619, #1622, #1623. Add early-exit guidance in step 1 to skip steps 2-4 for self-authored PRs. The bot still monitors CI and resolves threads, but skips the redundant code review that always produces zero visible output. Co-Authored-By: Claude Opus 4.6 <[email protected]>
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
config_value()now checksgit configexit codes instead of mapping all errors toOk(None). Exit 1 (key not found) returnsOk(None); other exit codes (corrupt config, permission denied) are propagated as errors.clear_hint()andclear_default_branch_cache()which use--unset(exit 5 = key not found).Closes #1580
Test plan
git config --getreturns 1 for missing keys,git config --unsetreturns 5🤖 Generated with Claude Code