Updated \ncc\Classes > GitClient > cloneRepositor()
to clone submodules recursively by default
This commit is contained in:
parent
2fb56d3543
commit
05d05e33b1
2 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Changed
|
### Changed
|
||||||
- Refactored `\ncc\Objects > PackageLock`
|
- Refactored `\ncc\Objects > PackageLock`
|
||||||
- Updated `defuse\php-encryption` to version 2.4.0
|
- 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
|
## [1.0.2] - 2023-06-29
|
||||||
|
|
|
@ -44,7 +44,7 @@ namespace ncc\Classes;
|
||||||
{
|
{
|
||||||
Console::outVerbose('Cloning repository: ' . $url);
|
Console::outVerbose('Cloning repository: ' . $url);
|
||||||
$path = Functions::getTmpDir();
|
$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->setTimeout(3600); // 1 hour
|
||||||
$process->run(function ($type, $buffer)
|
$process->run(function ($type, $buffer)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue