fix(crow): probe the auto-patch branch with git ls-remote to avoid a scary fatal #133
Loading…
Reference in a new issue
No description provided.
Delete branch "t3code/gate-quiet-branch-probe"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #132. The no-op path already worked (the
elsebranch runs andexit 0s), but usinggit fetchas the existence check printedfatal: couldn't find remote ref auto/registry-patch-proposalsto stderr — which looks like a failure even though the step succeeds.Probe with
git ls-remote --exit-code --heads origin ${patch_branch}instead: verified against the live repo it exits 0 for an existing branch and 2 for a missing one, silently (nofatal). Only fetch + checkout when the branch actually exists.Net: same behavior, clean log — a run with no pending auto-patch branch prints just
No ... branch; no pending auto-patch proposals to verify.and exits 0.