From fdf1e2a41d079c4f2d1f3df7c297fa0d92a18cc9 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 03 Aug 2023 06:29:28 +0000
Subject: [PATCH] use checkout for pulling updates

---
 quartz/build.ts |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/quartz/build.ts b/quartz/build.ts
index 688f735..c8b5b02 100644
--- a/quartz/build.ts
+++ b/quartz/build.ts
@@ -78,7 +78,7 @@
   let toRebuild: Set<FilePath> = new Set()
   let toRemove: Set<FilePath> = new Set()
   async function rebuild(fp: string, action: "add" | "change" | "delete") {
-    fp = toPosixPath(fp) 
+    fp = toPosixPath(fp)
     if (!ignored(fp)) {
       const filePath = joinSegments(argv.directory, fp) as FilePath
       if (action === "add" || action === "change") {
@@ -99,7 +99,7 @@
 
           ctx.allSlugs = [...new Set([...contentMap.keys(), ...toRebuild])]
             .filter((fp) => !toRemove.has(fp))
-            .map((fp) => slugifyFilePath(path.relative(argv.directory, fp) as FilePath))
+            .map((fp) => slugifyFilePath(path.posix.relative(argv.directory, fp) as FilePath))
 
           const parsedContent = await parseMarkdown(ctx, filesToRebuild)
           for (const content of parsedContent) {

--
Gitblit v1.10.0