Skip to content

Commit 8031560

Browse files
authored
better IDF commit checkout handling
1 parent f60f918 commit 8031560

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/install-esp-idf.sh

+7
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ if [ "$IDF_TAG" ]; then
5252
git -C "$IDF_PATH" checkout "tags/$IDF_TAG"
5353
idf_was_installed="1"
5454
elif [ "$IDF_COMMIT" ]; then
55+
cd $IDF_PATH
5556
git -C "$IDF_PATH" checkout "$IDF_COMMIT"
57+
git reset --hard $IDF_COMMIT
58+
git submodule update --recursive
59+
git rm -r $IDF_PATH/components/wifi_provisioning
60+
git rm -r $IDF_PATH/components/spiffs
61+
git commit -m "delete components SPIFFS and wifi-provisioning"
62+
cd -
5663
commit_predefined="1"
5764
fi
5865

0 commit comments

Comments
 (0)