Files
msd-core/.changeset/humble-cranes-wave.md
Tom Boucher 7ab4556395 fix(#3079): query commit no longer resurrects deleted phase branches via silent switch (#3141)
* fix(#3079: query commit no longer resurrects deleted phase branches via silent switch

git checkout -b both created AND switched HEAD, so when branching_strategy:
'phase' deletes its branch on merge, a later query commit silently
recreated it and moved HEAD there. The commit landed on the wrong branch.

Fix: replace checkout -b with git rev-parse --verify + git branch (create-
only, no switch). The commit always lands on the current branch. Callers
that want to be on the phase branch use execute-phase's handle_branching.

Updated 3 existing tests that asserted the old switch behavior.

* chore(#3079): backfill changeset PR number 3141

---------

Co-authored-by: sim <sim@local>
2026-08-07 07:02:43 -04:00

398 B

type, pr
type pr
Fixed 3141

query commit no longer silently switches to a phase/milestone branch — git checkout -b both created AND switched HEAD, resurrecting merged-and-deleted phase branches. Now uses git branch (create-only, no switch); the commit always lands on the current branch. Callers that want to be on the phase branch should use execute-phase's branching step. (#3079)