parent
c39542f51e
commit
876ad22cdd
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user