Skip to content

Commit 1f978b3

Browse files
authored
fix(install): Fetch before checkout to avoid errors (espressif#212)
1 parent a93dd64 commit 1f978b3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/install-arduino.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ fi
4141

4242
if [ "$AR_BRANCH" ]; then
4343
echo "AR_BRANCH='$AR_BRANCH'"
44+
git -C "$AR_COMPS/arduino" fetch --all && \
4445
git -C "$AR_COMPS/arduino" checkout "$AR_BRANCH" && \
45-
git -C "$AR_COMPS/arduino" fetch && \
4646
git -C "$AR_COMPS/arduino" pull --ff-only
4747
fi
4848
if [ $? -ne 0 ]; then exit 1; fi

tools/install-esp-idf.sh

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ if [ ! -d "$IDF_PATH" ]; then
1717
idf_was_installed="1"
1818
fi
1919

20+
git -C "$IDF_PATH" fetch --all --tags
21+
2022
if [ "$IDF_TAG" ]; then
2123
git -C "$IDF_PATH" checkout "tags/$IDF_TAG"
2224
idf_was_installed="1"

0 commit comments

Comments
 (0)