mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
Update src/SPC/store/Downloader.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -230,7 +230,7 @@ class Downloader
|
|||||||
$quiet = !defined('DEBUG_MODE') ? '-q --quiet' : '';
|
$quiet = !defined('DEBUG_MODE') ? '-q --quiet' : '';
|
||||||
$git = SPC_GIT_EXEC;
|
$git = SPC_GIT_EXEC;
|
||||||
$shallow = defined('GIT_SHALLOW_CLONE') ? '--depth 1 --single-branch' : '';
|
$shallow = defined('GIT_SHALLOW_CLONE') ? '--depth 1 --single-branch' : '';
|
||||||
$recursive = !is_array($submodules) ? '--recursive' : '';
|
$recursive = ($submodules === null) ? '--recursive' : '';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
self::registerCancelEvent(function () use ($download_path) {
|
self::registerCancelEvent(function () use ($download_path) {
|
||||||
|
|||||||
Reference in New Issue
Block a user