We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6c1420 + b28a910 commit c2ade7cCopy full SHA for c2ade7c
1 file changed
tools/install_idf.sh
@@ -26,13 +26,15 @@ fi
26
27
if [ ! -d "${IDF_PATH}/.git" ]; then
28
echo "Cloning ESP-IDF ${ESP_IDF_VERSION} into ${IDF_PATH}"
29
- git clone --depth 1 --branch "${ESP_IDF_VERSION}" "${REPO_URL}" "${IDF_PATH}"
+ git clone --depth 1 --branch "${ESP_IDF_VERSION}" --recurse-submodules "${REPO_URL}" "${IDF_PATH}"
30
else
31
echo "Updating existing ESP-IDF checkout at ${IDF_PATH}"
32
git -C "${IDF_PATH}" fetch --depth 1 origin "${ESP_IDF_VERSION}"
33
git -C "${IDF_PATH}" reset --hard FETCH_HEAD
34
fi
35
36
+git -C "${IDF_PATH}" submodule update --init --recursive --depth 1
37
+
38
if [ ! -x "${IDF_PATH}/install.sh" ]; then
39
echo "Error: install.sh not found or not executable in ${IDF_PATH}." >&2
40
exit 1
0 commit comments