mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-10 07:56:37 +02:00
Follow-up nits from PR #1988 review: - Move the comment that documents getRemoteDefaultBranch's resolution walk into the resolveBaseRef call site description, and rephrase the "" branch so it's clear that path only fires for the default-branch case (the requested-ref path returns an explicit error before reaching it). - Add TestCreateWorktreeWithRequestedTagRef to lock in the refs/tags/<ref> candidate. The test tags the initial commit, advances the default branch past it, then asserts the worktree HEAD matches the tagged commit (so the tag must have been resolved, not the default branch). Co-authored-by: multica-agent <github@multica.ai>