From dad2ec116450c3168e6cbebd04e5db31e45e776a Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Fri, 9 Sep 2022 01:57:42 +0800 Subject: [PATCH] Use pull --- extra/checkout-pr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/checkout-pr.js b/extra/checkout-pr.js index b7d643c5..a68f0577 100644 --- a/extra/checkout-pr.js +++ b/extra/checkout-pr.js @@ -22,7 +22,7 @@ let result = childProcess.spawnSync("git", [ "remote", "add", name, `https://git console.log(result.stdout.toString()); console.error(result.stderr.toString()); -result = childProcess.spawnSync("git", [ "checkout", `${name}/${branch}`, "--force" ]); +result = childProcess.spawnSync("git", [ "pull", name, branch ]); console.log(result.stdout.toString()); console.error(result.stderr.toString());