From d5ddab0cbd67dcc60f4e92237763370873fb8e64 Mon Sep 17 00:00:00 2001 From: alpha nerd Date: Tue, 12 May 2026 09:00:44 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20create=E2=80=91or=E2=80=91reset=20the?= =?UTF-8?q?=20local=20branch=20from=20the=20tracking=20ref=20and=20explici?= =?UTF-8?q?tly=20wire=20up=20the=20upstream?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 1131e7a..c23006c 100644 --- a/index.ts +++ b/index.ts @@ -694,7 +694,7 @@ async function checkoutLocalBranch(pr: ForgejoPullRequest) { "fetch", "origin", "--depth=100", `+refs/heads/${branch}:refs/remotes/origin/${branch}`, ]) - await $`git checkout ${branch}` + await $`git checkout -B ${branch} --track origin/${branch}` } async function checkoutForkBranch(pr: ForgejoPullRequest) {