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)