Skip to content

Commit b09872e

Browse files
authored
travis-ci fix git shallow clone for git ver (#4885)
1 parent c2825f7 commit b09872e

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
@@ -25,7 +25,8 @@ cache:
2525

2626
before_install:
2727
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
28-
git fetch --all --tags --unshallow
28+
cd ${TRAVIS_BUILD_DIR}
29+
&& git fetch --unshallow && git fetch --all --tags
2930
&& docker pull ${DOCKER_REPO}
3031
;
3132
elif [ "${TRAVIS_OS_NAME}" = "osx" ]; then

0 commit comments

Comments
 (0)