From 2b1d03d9d45641c2821e095c1235bf1779103be3 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Mon, 21 Jul 2025 23:29:38 +0800 Subject: [PATCH] Update src/SPC/store/Downloader.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/SPC/store/Downloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/store/Downloader.php b/src/SPC/store/Downloader.php index 7f93ab7d..4464840e 100644 --- a/src/SPC/store/Downloader.php +++ b/src/SPC/store/Downloader.php @@ -230,7 +230,7 @@ class Downloader $quiet = !defined('DEBUG_MODE') ? '-q --quiet' : ''; $git = SPC_GIT_EXEC; $shallow = defined('GIT_SHALLOW_CLONE') ? '--depth 1 --single-branch' : ''; - $recursive = !is_array($submodules) ? '--recursive' : ''; + $recursive = ($submodules === null) ? '--recursive' : ''; try { self::registerCancelEvent(function () use ($download_path) {