Page 1 of 1

Error when updating ESP_IDF

Posted: Mon Apr 01, 2019 1:31 pm
by Ritu21
Hi

I am getting below error when updating esp-idf-
git submodule update
error: Your local changes to the following files would be overwritten by checkout:
esptool.py
Please commit your changes or stash them before you switch branches.
Aborting
Unable to checkout '40258ed6de78672ef20862fea24fbdf4a9b38413' in submodule path 'components/esptool_py/esptool'

Please suggest how to solve this?

Thanks
Ritu.

Re: Error when updating ESP_IDF

Posted: Tue Apr 02, 2019 5:58 am
by ESP_Roland
Hi Ritu21,

you can solve it like this:

Code: Select all

cd $IDF_PATH/components/esptool_py/esptool
git checkout -- esptool.py
cd $IDF_PATH

Re: Error when updating ESP_IDF

Posted: Tue Apr 02, 2019 6:13 am
by Ritu21
Hi Roland,

Thanks. It works like a charm :D