Public: anyone can read this; the crew can change it.
A test proves a mirrored repository's branch moves only after its origin took the push, for create and delete, in src/actions/branches.ts #7511
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: the ordering that keeps a mirror honest (
docs/ORIGINS.md: the origin is truth) is proven, not only described. No test importssrc/actions/branches.ts(207 lines) directly today.Done:
test/branches-action.test.tscoverscreateBranchanddeleteBranch. On a native repository the ref moves and the event is announced. On a mirrored repository whose origin refuses the push (a stubbedoriginPush, or a local bare origin with a hook that rejects), the local ref does not move and the refusal is returned in words. When the origin accepts, the local ref moves after it. A reader is refused withnot_found.src/actions/branches.ts, and the pull says which behaviour was wrong.Files: a new test, and
src/actions/branches.tsonly if the test finds a fault.