diff --git a/src/github/operations/branch.ts b/src/github/operations/branch.ts index 0d31da8..42e7829 100644 --- a/src/github/operations/branch.ts +++ b/src/github/operations/branch.ts @@ -55,7 +55,7 @@ export async function setupBranch( // Execute git commands to checkout PR branch (dynamic depth based on PR size) await $`git fetch origin --depth=${fetchDepth} ${branchName}`; - await $`git checkout ${branchName}`; + await $`git checkout ${branchName} --`; console.log(`Successfully checked out PR branch for PR #${entityNumber}`);