Skip to content

Commit 7f440d0

Browse files
authored
Merge pull request espressif#3 from lbernstone/idfcommit_in
add a IDF_COMMIT variable that will checkout to an exact commit
2 parents 9a75546 + b34019b commit 7f440d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: tools/install-esp-idf.sh

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if [ -z "$IDF_PATH" ]; then
2020
cd "$AR_ROOT"
2121
fi
2222

23+
if [ "$IDF_COMMIT" ]; then
24+
git -C $IDF_PATH checkout $IDF_COMMIT
25+
git -C $IDF_PATH submodule update
26+
fi
27+
2328
if ! [ -x "$(command -v $IDF_TOOLCHAIN-gcc)" ]; then
2429
echo "GCC toolchain is not installed! Installing local copy"
2530

0 commit comments

Comments
 (0)