Skip to content

Commit 0d15b12

Browse files
authored
build: minor improvement to repo cloning with submodules (#90)
1 parent 1245ce4 commit 0d15b12

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compileMbedtls.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ rm -rf ${BUILD_DIR}
1717

1818
# Clone the repository for MbedTLS 4.0.0+
1919
echo "Cloning MbedTLS ${MBEDTLS_VERSION}..."
20-
git clone --depth 1 --branch v${MBEDTLS_VERSION} https://github.com/Mbed-TLS/mbedtls.git ${BUILD_DIR}
21-
22-
# Initialize submodules recursively
23-
echo "Initializing all submodules recursively..."
24-
(cd ${BUILD_DIR} && git submodule update --init --recursive --depth 1)
20+
git clone --depth 1 --branch v${MBEDTLS_VERSION} --recurse-submodules --shallow-submodules https://github.com/Mbed-TLS/mbedtls.git ${BUILD_DIR}
2521

2622
# install python requirements
2723
python3 -m pip install -r ${BUILD_DIR}/scripts/basic.requirements.txt

0 commit comments

Comments
 (0)