Skip to content

Commit 07a8053

Browse files
committed
Apparently shallow submodules are bleeding edge
1 parent 666af3d commit 07a8053

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ git:
1717

1818
before_install:
1919
- export -f travis_nanoseconds travis_time_start travis_time_finish
20-
- if ! [ -x ./test ]; then git submodule update --init --recursive $([ $TRAVIS_OS_NAME = windows ] || echo --depth 1) .cppsm; fi
20+
- if [[ $(git version) =~ \ 2\.19\. ]]; then GIT_DEPTH=(--no-recommend-shallow); else GIT_DEPTH=(--depth 1); fi
21+
- if ! [ -x ./test ]; then git submodule update --init --recursive "${GIT_DEPTH[@]}" .cppsm; fi
2122

2223
script:
2324
- if [ -x ./test ]; then ./test; else .cppsm/.cli/travis-ci; fi

0 commit comments

Comments
 (0)