Quiet console output for non --debug mode

This commit is contained in:
crazywhalecc 2025-03-30 14:31:29 +08:00
parent ee54b6d347
commit 2c0bb1f7ba
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -246,6 +246,7 @@ class Downloader
self::registerCancelEvent($cancel_func);
f_passthru(
SPC_GIT_EXEC . ' clone' . $check .
(defined('DEBUG_MODE') ? '' : ' --quiet') .
' --config core.autocrlf=false ' .
"--branch \"{$branch}\" " . (defined('GIT_SHALLOW_CLONE') ? '--depth 1 --single-branch' : '') . " --recursive \"{$url}\" \"{$download_path}\""
);