When mergeMilestoneToMain runs from a worktree context, main is already checked out at the project root. The unconditional git checkout main fails with "already used by worktree" because git refuses to checkout a branch that is active in another worktree. Skip the checkout when the integration branch is already current at the project root, which is always the case in worktree-mode merges. |
||
|---|---|---|
| .. | ||
| agents | ||
| extensions | ||
| skills | ||
| GSD-WORKFLOW.md | ||