From 07a805346c6d7ccb0eb00c64b8944b92f837c70d Mon Sep 17 00:00:00 2001 From: Vesa Karvonen Date: Sat, 18 May 2019 19:57:23 +0300 Subject: [PATCH] Apparently shallow submodules are bleeding edge --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7076d72..f07685e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,8 @@ git: before_install: - export -f travis_nanoseconds travis_time_start travis_time_finish - - if ! [ -x ./test ]; then git submodule update --init --recursive $([ $TRAVIS_OS_NAME = windows ] || echo --depth 1) .cppsm; fi + - if [[ $(git version) =~ \ 2\.19\. ]]; then GIT_DEPTH=(--no-recommend-shallow); else GIT_DEPTH=(--depth 1); fi + - if ! [ -x ./test ]; then git submodule update --init --recursive "${GIT_DEPTH[@]}" .cppsm; fi script: - if [ -x ./test ]; then ./test; else .cppsm/.cli/travis-ci; fi