diff --git a/index.ts b/index.ts index 9fddfa0..82e99f2 100644 --- a/index.ts +++ b/index.ts @@ -687,7 +687,7 @@ async function checkoutLocalBranch(pr: ForgejoPullRequest) { const branch = pr.head.ref const { forgejoToken } = getForgejoConfig() - await authedGit(forgejoToken, ["fetch", "origin", "--depth=100", branch]) + await authedGit(forgejoToken, ["fetch", "origin", "--depth=100", `+${branch}:${branch}`]) await $`git checkout ${branch}` }