More Fixes for Auto Fetch Nomi-CEu/Nomi-CEu (#890)

[SKIP]
This commit is contained in:
Integer Limit 2024-08-11 21:51:50 +10:00 committed by GitHub
parent c39542f51e
commit 876ad22cdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();