diff --git a/tools/tasks/helpers/questPorting/portQBData.ts b/tools/tasks/helpers/questPorting/portQBData.ts index b12650d..59dcbb3 100644 --- a/tools/tasks/helpers/questPorting/portQBData.ts +++ b/tools/tasks/helpers/questPorting/portQBData.ts @@ -101,12 +101,16 @@ export default class PortQBData { } else { logInfo(`Adding Remote ${remote}...`); - git.addRemote( + await git.addRemote( remote, `https://github.com/${repoOwner}/${repoName}.git`, ); } + // Fetch + logInfo(`Fetching Remote ${remote}...`); + await git.raw(["fetch", remote]); + this.ref = await input({ message: "What Temporary Branch should we create?", default: "temp/Nomi-CEu/main", @@ -116,9 +120,6 @@ 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();