Name a binary that exists, once per sync #90
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-agent-a1c5bb6c1e7d01688"
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?
Fixes the keyless-clone trust warning, which told the reader to run
collab key add --self(no such binary) and printed twice for a single remote.The duplicate came from the suppression flag living in
reconcile_refs, whichsynccalls once for issues and once for patches. It is now aTrustWarningowned by the sync run, threaded through both calls, withsync_allholding one across every remote — the warning describes the local trust store, so no remote in that loop is relevant to it. Carried rather than static sosyncstays callable more than once per test binary. Behaviour is unchanged: a keyless clone still accepts every valid signature and still warns.Two more wrong names found by a full sweep and fixed:
Error::KeyNotFoundsaidcollab init-key, and the server's governance-hook refusal — which goes back over SSH as the reason a push was rejected — prefixed itselfgit-collab:while running asgit-collab-server. Those were the only ones left; every other cited command and flag already resolved.Against recurrence,
tests/cli_surface_test.rsscans the source text of src/ and the README for delimited command citations and checks each against clap's own command tree. Source text rather than runtime output because both shipped instances were typos in string literals, only observable if that error path runs — and neither ran. clap as the oracle rather than a hand-kept list so the test cannot drift from the binary;clap_mangenrenders the man pages from the same tree, so those are correct by construction. ABINARY_NAMEconstant exists and the fixed messages build from it, but a constant only helps an author who reaches for it, so the lint is the real guard; it reads a leading{}as the binary name so the constant does not create a blind spot.Verified by planting both bug forms and watching the lint fail with file, line, and the real alternatives. Full suite green, clippy --all-targets silent, tui_review_test 14/14 across four runs with no variance.
Migrated from git-collab patche
81ce00d2fd7025b395a7aa08ce2fb62e4a840802.Original author: a73x dev@a73x.sh.
Fixes #88
Revision 1:
7a13f30a42c2d394b7a9f033b035a66e85842574; baseb2db9cf477d1b655cf3a3bde35cb15f0b034536e