From b06fcc88f913742371f1ce876e804fe609ba9130 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 28 Sep 2024 16:03:27 -0400 Subject: [PATCH] fix: make the temp branch an orphan --- src/worktree.ts | 1 + 1 file changed, 1 insertion(+) 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(