Skip to content

Commit 20ba64d

Browse files
committed
Auto merge of #39055 - aidanhs:aphs-deinit-before-init, r=alexcrichton
If submodule init fails, try from scratch See #39051 I wonder if the cause could be some strange not-quite-checked-out state in a submodule. Try and fix this by force deinitialising everything before initialising (this will not throw away downloaded objects, git will skip them on the next attempt at cloning). r? @alexcrichton
2 parents 7a526ca + 7b6c2cb commit 20ba64d

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
@@ -86,10 +86,10 @@ script:
8686
if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
8787
echo skipping, not a full build;
8888
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
89-
travis_retry git submodule update --init &&
89+
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
9090
src/ci/run.sh;
9191
else
92-
travis_retry git submodule update --init &&
92+
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
9393
src/ci/docker/run.sh $IMAGE;
9494
fi
9595

0 commit comments

Comments
 (0)