Skip to content

Commit 079cab8

Browse files
committed
fix(install): Fetch before checkout to avoid errors
1 parent a93dd64 commit 079cab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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

0 commit comments

Comments
 (0)