If submodule init fails, try from scratch

This commit is contained in:
Aidan Hobson Sayers 2017-01-14 03:10:45 +00:00
parent b0c52c587f
commit 7b6c2cbe56
1 changed files with 2 additions and 2 deletions

View File

@ -71,10 +71,10 @@ script:
if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
echo skipping, not a full build;
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
travis_retry git submodule update --init &&
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
src/ci/run.sh;
else
travis_retry git submodule update --init &&
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
src/ci/docker/run.sh $IMAGE;
fi