Skip to content

Commit 2592fcb

Browse files
committed
Ignore failure of first command. It's deliberate
1 parent 0a27f7c commit 2592fcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,5 +324,8 @@ clean-stm:
324324

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

0 commit comments

Comments
 (0)