Skip to content

Commit 0c01e95

Browse files
committed
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
1 parent ac09613 commit 0c01e95

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ cache:
77
- $GOPATH/src/github.com/golang
88
- $GOPATH/src/gopkg.in/alecthomas
99

10+
# Remove Travis' default flag --depth=50 from the git clone command to make sure
11+
# we have the whole git history, including the commit we lint against.
12+
git:
13+
depth: false
14+
1015
go:
1116
- "1.13.x"
1217

0 commit comments

Comments
 (0)