esp-rs / embuild

Build support for embedded Rust: Cargo integration with other embedded build ecosystems & tools, like PlatformIO, CMake and kconfig.
Apache License 2.0
140 stars 40 forks source link

git: Shallow submodules clone #31

Closed N3xed closed 2 years ago

N3xed commented 2 years ago

--depth 1 does not apply to submodules when cloning with --recursive. This results in deep submodules clones, which is really bad for repositories with many submodules (i.e. esp-idf).

Solution: Add --shallow-submodules so that --depth also affects submodules.