From 9e58857746b74ef3e122139f7db09509435bebc8 Mon Sep 17 00:00:00 2001
From: dralagen <dralagen@dralagen.fr>
Date: Sat, 26 Apr 2025 18:06:59 +0000
Subject: [PATCH] feat(favicon): add plugin to expose favicon from icon.png (#1942)

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