From da83734c8f5d9914a76ba8e33d6bdc4403a58e0d Mon Sep 17 00:00:00 2001 From: alpha nerd Date: Mon, 11 May 2026 19:47:05 +0200 Subject: [PATCH] fix: fetching correct branch --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}` }