From 4bd714b7be4a5d891ab187a94e64e537cb43809e Mon Sep 17 00:00:00 2001
From: Stephen Tse <Stephen-X@users.noreply.github.com>
Date: Sat, 26 Apr 2025 18:05:51 +0000
Subject: [PATCH] fix(callout): Grid-based callout collapsible animation (#1944)

---
 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