From c39542f51e9574c4c3937a46cf8462ea46a79463 Mon Sep 17 00:00:00 2001 From: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Date: Sun, 11 Aug 2024 20:43:31 +1000 Subject: [PATCH] Fix Auto Remote Fetching from Nomi-CEu/Nomi-CEu (#889) [SKIP] --- tools/tasks/helpers/questPorting/portQBData.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/tasks/helpers/questPorting/portQBData.ts b/tools/tasks/helpers/questPorting/portQBData.ts index bddde11..b12650d 100644 --- a/tools/tasks/helpers/questPorting/portQBData.ts +++ b/tools/tasks/helpers/questPorting/portQBData.ts @@ -116,10 +116,13 @@ export default class PortQBData { throw new Error("Branch already Exists!"); } + // Fetch + await git.fetch(remote); + // Create the Ref Branch, tracking the remote's main branch, but do not switch to it const currBranch = (await git.raw(["branch", "--show-current"])).trim(); await git.stash(); - await git.checkoutBranch(this.ref, `${remote}/main`); + await git.checkoutBranch(this.ref, `remotes/${remote}/main`); await git.checkout(currBranch); // Pop the newest stash (the one we just created)