Ignore failure of first command. It's deliberate

This commit is contained in:
Scott Shawcroft 2021-11-29 16:25:15 -08:00
parent 0a27f7c3ab
commit 2592fcbab2
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -324,5 +324,8 @@ clean-stm:
.PHONY: fetch-submodules
fetch-submodules:
git submodule update --init -N --depth 1
# This update will fail because the commits we need aren't the latest on the
# branch. We can ignore that though because we fix it with the second command.
# (Only works for git servers that allow sha fetches.)
git submodule update --init -N --depth 1 || true
git submodule foreach 'git fetch --tags --depth 1 origin $$sha1 && git checkout -q $$sha1'