Skip to content

Commit b06fcc8

Browse files
committed
fix: make the temp branch an orphan
1 parent 78ce9cd commit b06fcc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/worktree.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export async function generateWorktree(
101101
'Error encountered while checking out branch. Attempting to continue with a new branch name.'
102102
)
103103
branchName = `temp-${Date.now()}`
104+
checkout.orphan = true
104105
checkout = new GitCheckout(branchName, `origin/${action.branch}`)
105106

106107
await execute(

0 commit comments

Comments
 (0)