fix
This commit is contained in:
Vendored
+1
-1
@@ -43,7 +43,7 @@ async function create(ref) {
|
|||||||
await io.mkdirP(opt.cwd);
|
await io.mkdirP(opt.cwd);
|
||||||
await exec_1.exec('git', ['init'], opt);
|
await exec_1.exec('git', ['init'], opt);
|
||||||
await exec_1.exec('git', ['remote', 'add', 'origin', 'https://github.com/xmake-io/xmake.git'], opt);
|
await exec_1.exec('git', ['remote', 'add', 'origin', 'https://github.com/xmake-io/xmake.git'], opt);
|
||||||
await exec_1.exec('git', ['fetch'], opt);
|
await exec_1.exec('git', ['fetch', 'origin', '+refs/pull/*:refs/remotes/origin/pull/*', '+refs/heads/*:refs/remotes/origin/*'], opt);
|
||||||
await exec_1.exec('git', ['checkout', ref], opt);
|
await exec_1.exec('git', ['checkout', ref], opt);
|
||||||
await exec_1.exec('git', ['submodule', 'update', '--init', '--recursive'], opt);
|
await exec_1.exec('git', ['submodule', 'update', '--init', '--recursive'], opt);
|
||||||
return opt.cwd;
|
return opt.cwd;
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ export async function create(ref: string): Promise<string> {
|
|||||||
await io.mkdirP(opt.cwd);
|
await io.mkdirP(opt.cwd);
|
||||||
await exec('git', ['init'], opt);
|
await exec('git', ['init'], opt);
|
||||||
await exec('git', ['remote', 'add', 'origin', 'https://github.com/xmake-io/xmake.git'], opt);
|
await exec('git', ['remote', 'add', 'origin', 'https://github.com/xmake-io/xmake.git'], opt);
|
||||||
await exec('git', ['fetch'], opt);
|
await exec('git', ['fetch', 'origin', '+refs/pull/*:refs/remotes/origin/pull/*', '+refs/heads/*:refs/remotes/origin/*'], opt);
|
||||||
await exec('git', ['checkout', ref], opt);
|
await exec('git', ['checkout', ref], opt);
|
||||||
await exec('git', ['submodule', 'update', '--init', '--recursive'], opt);
|
await exec('git', ['submodule', 'update', '--init', '--recursive'], opt);
|
||||||
return opt.cwd;
|
return opt.cwd;
|
||||||
|
|||||||
Reference in New Issue
Block a user