From 876ad22cdd8b7fe7a9b0138bdee1fb6a64163613 Mon Sep 17 00:00:00 2001 From: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Date: Sun, 11 Aug 2024 21:51:50 +1000 Subject: [PATCH] More Fixes for Auto Fetch Nomi-CEu/Nomi-CEu (#890) [SKIP] --- tools/tasks/helpers/questPorting/portQBData.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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();