mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-23 22:14:40 -04:00
Fix checkout-pr by using fetch & checkout instead of pull
This commit is contained in:
parent
e90a4f1f34
commit
7b8f9c7655
2 changed files with 9 additions and 3 deletions
|
@ -22,7 +22,12 @@ let result = childProcess.spawnSync("git", [ "remote", "add", name, `https://git
|
|||
console.log(result.stdout.toString());
|
||||
console.error(result.stderr.toString());
|
||||
|
||||
result = childProcess.spawnSync("git", [ "pull", name, branch ]);
|
||||
result = childProcess.spawnSync("git", [ "fetch", name, branch ]);
|
||||
|
||||
console.log(result.stdout.toString());
|
||||
console.error(result.stderr.toString());
|
||||
|
||||
result = childProcess.spawnSync("git", [ "checkout", branch, "--force" ]);
|
||||
|
||||
console.log(result.stdout.toString());
|
||||
console.error(result.stderr.toString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue