Updated \ncc\Classes > GitClient > cloneRepositor() to clone submodules recursively by default

This commit is contained in:
Netkas 2023-07-11 19:20:11 -04:00
parent 2fb56d3543
commit 05d05e33b1
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Refactored `\ncc\Objects > PackageLock`
- Updated `defuse\php-encryption` to version 2.4.0
- Updated `\ncc\Classes > GitClient > cloneRepositor()` to clone submodules recursively by default
## [1.0.2] - 2023-06-29

View file

@ -44,7 +44,7 @@ namespace ncc\Classes;
{
Console::outVerbose('Cloning repository: ' . $url);
$path = Functions::getTmpDir();
$process = new Process(["git", "clone", $url, $path]);
$process = new Process(["git", "clone", "--recurse-submodules", $url, $path]);
$process->setTimeout(3600); // 1 hour
$process->run(function ($type, $buffer)
{