fix: fetching correct branch

This commit is contained in:
Alpha Nerd 2026-05-11 19:47:05 +02:00
parent 353aeda20d
commit da83734c8f
Signed by: alpha-nerd
SSH key fingerprint: SHA256:QkkAgVoYi9TQ0UKPkiKSfnerZy2h4qhi3SVPXJmBN+M

View file

@ -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}`
}