diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fae2b4..8e8ec2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/ncc/Classes/GitClient.php b/src/ncc/Classes/GitClient.php index 6245ed7..a8cdd68 100644 --- a/src/ncc/Classes/GitClient.php +++ b/src/ncc/Classes/GitClient.php @@ -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) {