We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b004a5b commit 39ebe97Copy full SHA for 39ebe97
.travis.yml
@@ -17,7 +17,7 @@ git:
17
18
before_install:
19
- export -f travis_nanoseconds travis_time_start travis_time_finish
20
- - export GIT_DEPTH=$(if [ 002021000 -le $(git --version | sed -e 's#[^0-9.]*##g' -e 's#\([0-9]*\)#00\1#g' -e 's#[0-9]*\([0-9]\{3\}\)\.*#\1#g') ]; then echo '--depth 1'; fi)
+ - export GIT_DEPTH=$(if [ 002021000 -le $(git --version | sed -e 's#^[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$#00\1.00\2.00\3#g' -e 's#[0-9]*\([0-9]\{3\}\)\.*#\1#g') ]; then echo '--depth 1'; fi)
21
22
script:
23
- if ! [ -x .cppsm/travis-ci ]; then git submodule --quiet update --init --no-recommend-shallow $GIT_DEPTH .cppsm; fi
0 commit comments