Skip to content

Commit 7b6c2cb

Browse files
committed
If submodule init fails, try from scratch
1 parent b0c52c5 commit 7b6c2cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ script:
7171
if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
7272
echo skipping, not a full build;
7373
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
74-
travis_retry git submodule update --init &&
74+
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
7575
src/ci/run.sh;
7676
else
77-
travis_retry git submodule update --init &&
77+
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
7878
src/ci/docker/run.sh $IMAGE;
7979
fi
8080

0 commit comments

Comments
 (0)