fix(crow): probe the auto-patch branch with git ls-remote to avoid a scary fatal #133

Merged
pat-s merged 1 commit from t3code/gate-quiet-branch-probe into main 2026-07-17 11:52:07 +00:00

2026-07-17

fix(crow): probe the auto-patch branch with git ls-remote to avoid a scary fatal
The no-op path worked (the else branch runs and exits 0), but using `git fetch`
as the existence check printed `fatal: couldn't find remote ref ...` to stderr
when the branch is absent -- which reads as a failure even though the step
succeeds. Probe with `git ls-remote --exit-code --heads` instead, which is
silent and sets a clean exit code; only fetch/checkout when the branch exists.
2026-07-17 10:32:05 +00:00