@@ -18,33 +18,8 @@ if [ ! -d "$AR_COMPS/arduino" ]; then
18
18
git clone $AR_REPO_URL " $AR_COMPS /arduino"
19
19
fi
20
20
21
- if [ -z $AR_BRANCH ]; then
22
- if [ -z $GITHUB_HEAD_REF ]; then
23
- current_branch=` git branch --show-current`
24
- else
25
- current_branch=" $GITHUB_HEAD_REF "
26
- fi
27
- echo " Current Branch: $current_branch "
28
- if [[ " $current_branch " != " master" && ` git_branch_exists " $AR_COMPS /arduino" " $current_branch " ` == " 1" ]]; then
29
- export AR_BRANCH=" $current_branch "
30
- else
31
- has_ar_branch=` git_branch_exists " $AR_COMPS /arduino" " idf-$IDF_BRANCH " `
32
- if [ " $has_ar_branch " == " 1" ]; then
33
- export AR_BRANCH=" idf-$IDF_BRANCH "
34
- else
35
- has_ar_branch=` git_branch_exists " $AR_COMPS /arduino" " $AR_PR_TARGET_BRANCH " `
36
- if [ " $has_ar_branch " == " 1" ]; then
37
- export AR_BRANCH=" $AR_PR_TARGET_BRANCH "
38
- fi
39
- fi
40
- fi
41
- fi
42
-
43
- if [ " $AR_BRANCH " ]; then
44
- git -C " $AR_COMPS /arduino" checkout " $AR_BRANCH " && \
45
- git -C " $AR_COMPS /arduino" fetch && \
46
- git -C " $AR_COMPS /arduino" pull --ff-only
47
- fi
21
+ git -C " $AR_COMPS /arduino" fetch && \
22
+ git -C " $AR_COMPS /arduino" checkout 2.0.3
48
23
if [ $? -ne 0 ]; then exit 1; fi
49
24
50
25
#
@@ -54,9 +29,9 @@ if [ $? -ne 0 ]; then exit 1; fi
54
29
if [ ! -d " $AR_COMPS /esp32-camera" ]; then
55
30
git clone $CAMERA_REPO_URL " $AR_COMPS /esp32-camera"
56
31
else
57
- git -C " $AR_COMPS /esp32-camera" fetch && \
58
- git -C " $AR_COMPS /esp32-camera " pull --ff-only
59
- fi
32
+ git -C " $AR_COMPS /esp32-camera" fetch
33
+ fi && \
34
+ git -C " $AR_COMPS /esp32-camera " checkout 86a4951
60
35
# this is a temp measure to fix build issue in recent IDF master
61
36
if [ -f " $AR_COMPS /esp32-camera/idf_component.yml" ]; then
62
37
rm -rf " $AR_COMPS /esp32-camera/idf_component.yml"
@@ -70,9 +45,9 @@ if [ $? -ne 0 ]; then exit 1; fi
70
45
if [ ! -d " $AR_COMPS /esp-dl" ]; then
71
46
git clone $DL_REPO_URL " $AR_COMPS /esp-dl"
72
47
else
73
- git -C " $AR_COMPS /esp-dl" fetch && \
74
- git -C " $AR_COMPS /esp-dl " pull --ff-only
75
- fi
48
+ git -C " $AR_COMPS /esp-dl" fetch
49
+ fi && \
50
+ git -C " $AR_COMPS /esp-dl " checkout d949350
76
51
if [ $? -ne 0 ]; then exit 1; fi
77
52
78
53
#
@@ -82,9 +57,9 @@ if [ $? -ne 0 ]; then exit 1; fi
82
57
if [ ! -d " $AR_COMPS /esp-sr" ]; then
83
58
git clone $SR_REPO_URL " $AR_COMPS /esp-sr"
84
59
else
85
- git -C " $AR_COMPS /esp-sr" fetch && \
86
- git -C " $AR_COMPS /esp-sr " pull --ff-only
87
- fi
60
+ git -C " $AR_COMPS /esp-sr" fetch
61
+ fi && \
62
+ git -C " $AR_COMPS /esp-sr " checkout d05cf97
88
63
if [ $? -ne 0 ]; then exit 1; fi
89
64
90
65
#
@@ -96,9 +71,9 @@ if [ ! -d "$AR_COMPS/esp_littlefs" ]; then
96
71
git -C " $AR_COMPS /esp_littlefs" submodule update --init --recursive
97
72
else
98
73
git -C " $AR_COMPS /esp_littlefs" fetch && \
99
- git -C " $AR_COMPS /esp_littlefs" pull --ff-only && \
100
74
git -C " $AR_COMPS /esp_littlefs" submodule update --init --recursive
101
- fi
75
+ fi && \
76
+ git -C " $AR_COMPS /esp_littlefs" checkout 29341d0
102
77
if [ $? -ne 0 ]; then exit 1; fi
103
78
104
79
#
@@ -111,9 +86,9 @@ if [ ! -d "$AR_COMPS/esp-rainmaker" ]; then
111
86
# git -C "$AR_COMPS/esp-rainmaker" checkout f1b82c71c4536ab816d17df016d8afe106bd60e3
112
87
else
113
88
git -C " $AR_COMPS /esp-rainmaker" fetch && \
114
- git -C " $AR_COMPS /esp-rainmaker" pull --ff-only && \
115
89
git -C " $AR_COMPS /esp-rainmaker" submodule update --init --recursive
116
- fi
90
+ fi && \
91
+ git -C " $AR_COMPS /esp-rainmaker" checkout f57a5ec
117
92
if [ $? -ne 0 ]; then exit 1; fi
118
93
119
94
#
@@ -127,9 +102,9 @@ if [ ! -d "$AR_COMPS/esp-dsp" ]; then
127
102
# echo "$cml" >> "$AR_COMPS/esp-dsp/CMakeLists.txt"
128
103
# echo "endif()" >> "$AR_COMPS/esp-dsp/CMakeLists.txt"
129
104
else
130
- git -C " $AR_COMPS /esp-dsp" fetch && \
131
- git -C " $AR_COMPS /esp-dsp " pull --ff-only
132
- fi
105
+ git -C " $AR_COMPS /esp-dsp" fetch
106
+ fi && \
107
+ git -C " $AR_COMPS /esp-dsp " checkout 07aa7b1
133
108
if [ $? -ne 0 ]; then exit 1; fi
134
109
135
110
#
@@ -139,8 +114,8 @@ if [ $? -ne 0 ]; then exit 1; fi
139
114
if [ ! -d " $AR_COMPS /arduino_tinyusb/tinyusb" ]; then
140
115
git clone $TINYUSB_REPO_URL " $AR_COMPS /arduino_tinyusb/tinyusb"
141
116
else
142
- git -C " $AR_COMPS /arduino_tinyusb/tinyusb" fetch && \
143
- git -C " $AR_COMPS /arduino_tinyusb/tinyusb " pull --ff-only
144
- fi
117
+ git -C " $AR_COMPS /arduino_tinyusb/tinyusb" fetch
118
+ fi && \
119
+ git -C " $AR_COMPS /arduino_tinyusb/tinyusb " checkout b5a9537eea81bd6ffd8d575dbd2b5823c2fc1f0e
145
120
if [ $? -ne 0 ]; then exit 1; fi
146
121
0 commit comments