Skip to content

Commit b2385cf

Browse files
Update src/SPC/store/Downloader.php
Co-authored-by: Copilot <[email protected]>
1 parent 2b1d03d commit b2385cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/store/Downloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public static function downloadGit(string $name, string $url, string $branch, ?a
242242
f_passthru("{$git} clone {$quiet} --config core.autocrlf=false --branch \"{$branch}\" {$shallow} {$recursive} \"{$url}\" \"{$download_path}\"");
243243
if ($submodules !== null) {
244244
foreach ($submodules as $submodule) {
245-
f_passthru("cd \"{$download_path}\" && {$git} submodule update --init {$submodule}");
245+
f_passthru("cd \"{$download_path}\" && {$git} submodule update --init " . escapeshellarg($submodule));
246246
}
247247
}
248248
} catch (RuntimeException $e) {

0 commit comments

Comments
 (0)