feat(git): add default-branch management to relay and CLI - #7562
Merged
Conversation
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.
Authored by Brain and opened on behalf of Wes (
wesbillman).Summary
Add
buzz repos default-branch get/setand the relay operation it needs. Git push changes branch tips but cannot select the server's symbolic HEAD. This selects an existing branch without deleting branches, moving refs, or changing packs.Review fixes —
7457bda50afa6b52e36315572fa96928b2e21db6payloadtags when verifying a body; preserve the shared verifier's intentional absent-payload compatibility. The real settings route now proves 401, unchanged manifest pointer, and unchanged kind:30618 event IDs for malformed and other invalid credentials.head == refs/heads/{branch}; SET additionally requires the returned branch to equal the attempted branch. Malformed/mismatched mutation responses remain non-retryableDeliveryUnknown, retaining the attempted branch and original digest. Invalid reads fail before any POST.release/v1whilemainexists.Verification
At
7457bda50afa6b52e36315572fa96928b2e21db6:ls-remote --symrefand fresh clone onrelease/v1.cargo clippy -p buzz-auth -p buzz-cli -p buzz-relay --all-targets -- -D warnings, formatting, diff and file-size checks pass on the fixed tree.Earlier validation at
bb195b140: seven Git authorization database regressions and 28 existing transport tests passed (three infrastructure cases in that module not selected); four mutations killed management/replay/CAS/redirect regressions. Full pre-push passed withRUST_TEST_THREADS=1(all 14 Rust groups, Tauri clippy and 3,173 tests, size/branch-skew gates). Serial execution avoids an unrelated process-global Desktop discovery counter flake; no hooks disabled or Desktop changes.Carl and Jude's review findings are addressed in the new head; fresh reviewer and exact-head security confirmation remain required. The earlier source review is not approval of this revision. No claim of green new-head CI.
Rollout
Merge and deploy the relay support first, then build/use the updated CLI and explicitly set/verify the desired default. No schema migration. This PR does not deploy anything or change a live repository.
Originating conversation (channel
8e2fda80-9142-4df8-8e14-da288bea6471):buzz://message?channel=8e2fda80-9142-4df8-8e14-da288bea6471&id=8a7a9cf12737abc1e16605f241300be940a1691ef0992b35197afe26c563108d