travis: remove git clone depth limitation to fix linter

By default, Travis-CI does `git clone --depth=50` which limits the
repo to the last 50 commits. Because we do linting against an old
commit, it cannot be found any more. We remove the limit completely
to not run into this problem again.
This commit is contained in:
Oliver Gugger 2020-02-20 20:18:43 +01:00
parent 5d5069c477
commit ac28b2c692
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

View File

@ -8,6 +8,11 @@ cache:
- $GOPATH/src/github.com/golang
- $GOPATH/src/gopkg.in/alecthomas
# Remove Travis' default flag --depth=50 from the git clone command to make sure
# we have the whole git history, including the commit we lint against.
git:
depth: false
go:
- "1.13.x"