Skip to content

Commit

Permalink
fix: make the temp branch an orphan
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Sep 28, 2024
1 parent 78ce9cd commit b06fcc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/worktree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b06fcc8

Please sign in to comment.