From 8d5b13ee03533f72954037608001d5d8b3029d0f Mon Sep 17 00:00:00 2001
From: Stephen Tse <Stephen-X@users.noreply.github.com>
Date: Mon, 28 Apr 2025 21:58:06 +0000
Subject: [PATCH] fix(fonts): Fixed page title fonts not downloadable to local (#1898)
---
quartz/cli/handlers.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/quartz/cli/handlers.js b/quartz/cli/handlers.js
index c41bafc..0cb371b 100644
--- a/quartz/cli/handlers.js
+++ b/quartz/cli/handlers.js
@@ -589,7 +589,8 @@
await popContentFolder(contentFolder)
if (argv.push) {
console.log("Pushing your changes")
- const res = spawnSync("git", ["push", "-uf", ORIGIN_NAME, QUARTZ_SOURCE_BRANCH], {
+ const currentBranch = execSync("git rev-parse --abbrev-ref HEAD").toString().trim()
+ const res = spawnSync("git", ["push", "-uf", ORIGIN_NAME, currentBranch], {
stdio: "inherit",
})
if (res.status !== 0) {
--
Gitblit v1.10.0