From 0c01e954331c979959d9282b7aafcd63d8b8a66a Mon Sep 17 00:00:00 2001 From: carla Date: Mon, 4 May 2020 13:56:38 +0200 Subject: [PATCH] traivs: set depth to false to clone whole repo Overwrite travis's default of only cloning the last 50 commands so that travis can find the reference point for our linter. As in lightningnetwork/lnd/pull/4026 --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 508ff0b..8ad7c59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,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"