parent
c39542f51e
commit
876ad22cdd
@ -101,12 +101,16 @@ export default class PortQBData {
|
|||||||
} else {
|
} else {
|
||||||
logInfo(`Adding Remote ${remote}...`);
|
logInfo(`Adding Remote ${remote}...`);
|
||||||
|
|
||||||
git.addRemote(
|
await git.addRemote(
|
||||||
remote,
|
remote,
|
||||||
`https://github.com/${repoOwner}/${repoName}.git`,
|
`https://github.com/${repoOwner}/${repoName}.git`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fetch
|
||||||
|
logInfo(`Fetching Remote ${remote}...`);
|
||||||
|
await git.raw(["fetch", remote]);
|
||||||
|
|
||||||
this.ref = await input({
|
this.ref = await input({
|
||||||
message: "What Temporary Branch should we create?",
|
message: "What Temporary Branch should we create?",
|
||||||
default: "temp/Nomi-CEu/main",
|
default: "temp/Nomi-CEu/main",
|
||||||
@ -116,9 +120,6 @@ export default class PortQBData {
|
|||||||
throw new Error("Branch already Exists!");
|
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
|
// 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();
|
const currBranch = (await git.raw(["branch", "--show-current"])).trim();
|
||||||
await git.stash();
|
await git.stash();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user