travis.yml: retry git fetch.

This commit is contained in:
Mike McQuaid 2015-09-22 09:20:18 +01:00 committed by Xu Cheng
parent a782406cc3
commit 9c5427d9a9

View File

@ -19,7 +19,7 @@ before_install:
- export TRAVIS_BUILD_DIR="/usr/local"
- sudo chown -R $USER /usr/local
- cd /usr/local
- if [ -f ".git/shallow" ]; then git fetch --unshallow; fi
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- git reset --hard $TRAVIS_COMMIT
- git clean -qxdff