Skip to content

Commit 1a838f3

Browse files
committed
Make sure that correct source arduino branch is cloned
1 parent cc1deac commit 1a838f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/update-components.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if [ -z $AR_BRANCH ]; then
1717
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "idf-$IDF_BRANCH"`
1818
if [ "$has_ar_branch" == "1" ]; then
1919
export AR_BRANCH="idf-$IDF_BRANCH"
20+
else
21+
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "$AR_PR_TARGET_BRANCH"`
22+
if [ "$has_ar_branch" == "1" ]; then
23+
export AR_BRANCH="$AR_PR_TARGET_BRANCH"
24+
fi
2025
fi
2126
fi
2227

0 commit comments

Comments
 (0)