@@ -171,6 +171,7 @@ jobs:
171
171
fi
172
172
fi
173
173
git checkout main
174
+ git submodule foreach 'git fetch'
174
175
175
176
# Tell git about the correct merge base to use, which is the subtree
176
177
# head that we last merged from.
@@ -184,20 +185,19 @@ jobs:
184
185
-c user.name=gitbot -c user.email=git@bot \
185
186
merge -Xsubtree=library subtree/library; then
186
187
echo "MERGE_CONFLICTS=yes" >> $GITHUB_ENV
188
+ git submodule foreach 'grep $sm_path $toplevel/../submodule-heads | cut -f1 -d" " | xargs git checkout'
187
189
git -c user.name=gitbot -c user.email=git@bot commit -a -m "Merge from $NEXT_COMMIT_HASH with conflicts"
188
190
else
189
191
echo "MERGE_CONFLICTS=no" >> $GITHUB_ENV
192
+ git submodule foreach 'grep $sm_path $toplevel/../submodule-heads | cut -f1 -d" " | xargs git checkout'
193
+ git -c user.name=gitbot -c user.email=git@bot \
194
+ commit -m "Update submodules" library/
190
195
fi
191
196
git replace -d subtree/library
192
197
git replace -d main~1
193
198
NEW_SUBTREE_HEAD=$(git rev-parse subtree/library)
194
199
echo "NEW_SUBTREE_HEAD=${NEW_SUBTREE_HEAD}" >> $GITHUB_ENV
195
200
196
- git submodule foreach 'git fetch'
197
- git submodule foreach 'git fetch; grep $sm_path $toplevel/../submodule-heads | cut -f1 -d" " | xargs git checkout'
198
- git -c user.name=gitbot -c user.email=git@bot \
199
- commit -m "Update submodules" library/
200
-
201
201
sed -i "s/^channel = \"nightly-.*\"/channel = \"nightly-${NEXT_TOOLCHAIN_DATE}\"/" rust-toolchain.toml
202
202
git -c user.name=gitbot -c user.email=git@bot \
203
203
commit -m "Update toolchain to ${NEXT_TOOLCHAIN_DATE}" rust-toolchain.toml
0 commit comments