From 93986c6e7c8893ae3068bb3ea2ba187e5e1d6f43 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 04 Aug 2023 05:29:46 +0000
Subject: [PATCH] update pull strategy
---
quartz/bootstrap-cli.mjs | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs
index 4013a20..04ed3a2 100755
--- a/quartz/bootstrap-cli.mjs
+++ b/quartz/bootstrap-cli.mjs
@@ -121,10 +121,8 @@
}
function gitPull(origin, branch) {
- spawnSync("git", ["fetch", origin, branch], { stdio: "inherit" })
- spawnSync("git", ["checkout", `${origin}/${branch}`, "--", ":(exclude)content"], {
- stdio: "inherit",
- }).error
+ const flags = ["-s", "recursive", "-X", "ours"]
+ spawnSync("git", ["pull", ...flags, origin, branch], { stdio: "inherit" })
}
yargs(hideBin(process.argv))
--
Gitblit v1.10.0