From b2971bde6bcccd859623cddd61040b60475e7085 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Mon, 16 Mar 2026 12:19:52 +0100 Subject: [PATCH] fix(plugin): always shallow clone plugins --- quartz/cli/plugin-git-handlers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quartz/cli/plugin-git-handlers.js b/quartz/cli/plugin-git-handlers.js index bda3acc24..5f1dc05c7 100644 --- a/quartz/cli/plugin-git-handlers.js +++ b/quartz/cli/plugin-git-handlers.js @@ -880,7 +880,9 @@ export async function handlePluginRestore() { styleText("cyan", `→ ${name}: cloning ${entry.resolved}@${entry.commit.slice(0, 7)}...`), ) const branchArg = entry.ref ? ` --branch ${entry.ref}` : "" - execSync(`git clone${branchArg} ${entry.resolved} ${pluginDir}`, { stdio: "ignore" }) + execSync(`git clone --depth 1${branchArg} ${entry.resolved} ${pluginDir}`, { + stdio: "ignore", + }) execSync(`git checkout ${entry.commit}`, { cwd: pluginDir, stdio: "ignore" }) console.log(styleText("green", `✓ ${name} restored`)) restoredPlugins.push({ name, pluginDir })