parent
1bca3ffd3b
commit
c39542f51e
@ -116,10 +116,13 @@ 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();
|
||||||
await git.checkoutBranch(this.ref, `${remote}/main`);
|
await git.checkoutBranch(this.ref, `remotes/${remote}/main`);
|
||||||
await git.checkout(currBranch);
|
await git.checkout(currBranch);
|
||||||
|
|
||||||
// Pop the newest stash (the one we just created)
|
// Pop the newest stash (the one we just created)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user