From 208342891a481ad318ba79930c52ead5b0125504 Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Tue, 8 Aug 2023 19:12:20 +0530 Subject: [PATCH] [ESP32] Fix the docs when upgrading to esp-idf v5.1 (#28570) --- docs/guides/esp32/setup_idf_chip.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/guides/esp32/setup_idf_chip.md b/docs/guides/esp32/setup_idf_chip.md index ef57e61ca3c3ac..66f6931192cca3 100644 --- a/docs/guides/esp32/setup_idf_chip.md +++ b/docs/guides/esp32/setup_idf_chip.md @@ -22,21 +22,22 @@ step. [v5.1 release](https://github.com/espressif/esp-idf/releases/tag/v5.1) ``` - $ git clone -b v5.1 --recursive --depth 1 --shallow-submodule https://github.com/espressif/esp-idf.git - $ cd esp-idf - $ ./install.sh + git clone -b v5.1 --recursive --depth 1 --shallow-submodule https://github.com/espressif/esp-idf.git + cd esp-idf + ./install.sh ``` - To update an existing esp-idf toolchain to v5.1: ``` - $ cd path/to/esp-idf - $ git fetch origin - $ git checkout v5.1 - $ git reset --hard origin/v5.1 - $ git submodule update --recursive --init - $ git clean -fdx - $ ./install.sh + cd path/to/esp-idf + git fetch --depth 1 origin v5.1 + git reset --hard FETCH_HEAD + git submodule update --depth 1 --recursive --init + + # -ff is for cleaning untracked files as well as submodules + git clean -ffdx + ./install.sh ``` ## Setup Matter environment