Skip to content

Commit 2b1d03d

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

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
@@ -230,7 +230,7 @@ public static function downloadGit(string $name, string $url, string $branch, ?a
230230
$quiet = !defined('DEBUG_MODE') ? '-q --quiet' : '';
231231
$git = SPC_GIT_EXEC;
232232
$shallow = defined('GIT_SHALLOW_CLONE') ? '--depth 1 --single-branch' : '';
233-
$recursive = !is_array($submodules) ? '--recursive' : '';
233+
$recursive = ($submodules === null) ? '--recursive' : '';
234234

235235
try {
236236
self::registerCancelEvent(function () use ($download_path) {

0 commit comments

Comments
 (0)