diff --git a/src/worktree.ts b/src/worktree.ts index ceeebb69e..7a7589cd0 100644 --- a/src/worktree.ts +++ b/src/worktree.ts @@ -101,6 +101,7 @@ export async function generateWorktree( 'Error encountered while checking out branch. Attempting to continue with a new branch name.' ) branchName = `temp-${Date.now()}` + checkout.orphan = true checkout = new GitCheckout(branchName, `origin/${action.branch}`) await execute(