Skip to content

Commit fd3e9ce

Browse files
authored
Merge pull request adafruit#1560 from dhalbert/shallow-travis-errors
Fix travis shallow build issue
2 parents cc51cad + 071a21a commit fd3e9ce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ language: c
44
compiler:
55
- gcc
66
git:
7-
depth: 1
7+
depth: 6
88

99
# Each item under 'env' is a separate Travis job to execute.
1010
# They run in separate environments, so each one must take the time
@@ -56,7 +56,6 @@ notifications:
5656
before_script:
5757
# Expand the git tree back to 4.0.0-alpha.1 and then fetch the latest tag.
5858
- LAST_TAG=`git ls-remote --quiet --tags --sort=version:refname | egrep -o "refs/tags/[0-9]+.*\$" | tail -n 1`
59-
- git fetch --shallow-exclude=4.0.0-alpha.1 || git fetch --unshallow
6059
- git fetch --depth 1 origin $LAST_TAG:$LAST_TAG
6160
- git describe --dirty --always --tags
6261
- function var_search () { case "$1" in *$2*) true;; *) false;; esac; }

0 commit comments

Comments
 (0)