test: sync working tree in anon-commit tests — drop --force
_make_commit now calls apply_manifest when the commit is on the current HEAD branch, so the working tree always reflects HEAD state before each command runs. Commits made on non-HEAD branches correctly skip the workdir update.
_switch_branch handles the A4 case: sets HEAD to the target branch and syncs the working tree to its tip manifest so rebase sees a clean state.
_current_head_branch extracts the branch name from .muse/HEAD.
All four tests pass without --force, which means they now exercise the real code path that production users hit.
sha256:1ad288985ca8bd4c0d61355eb71eb2b23266381ff90463919ba8e4627081e334
sha
sha256:61b6fb7694ead2e5fc7ac3b2489350cf0f92cd11f2eb059380b0b0bc9e38a310
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:1ad288985ca8bd4c0d61355eb71eb2b23266381ff90463919ba8e4627081e334 --body "your comment"
No comments yet. Be the first to start the discussion.