From b2385cf80cd695c50f422e2003eb8a776a6f30df Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Mon, 21 Jul 2025 23:33:20 +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 4464840e..12881ae7 100644 --- a/src/SPC/store/Downloader.php +++ b/src/SPC/store/Downloader.php @@ -242,7 +242,7 @@ class Downloader f_passthru("{$git} clone {$quiet} --config core.autocrlf=false --branch \"{$branch}\" {$shallow} {$recursive} \"{$url}\" \"{$download_path}\""); if ($submodules !== null) { foreach ($submodules as $submodule) { - f_passthru("cd \"{$download_path}\" && {$git} submodule update --init {$submodule}"); + f_passthru("cd \"{$download_path}\" && {$git} submodule update --init " . escapeshellarg($submodule)); } } } catch (RuntimeException $e) {