gitlab-ci: Use --unshallow when fetching for linters
authorBen Gamari <ben@smart-cactus.org>
Fri, 7 Jun 2019 14:55:30 +0000 (10:55 -0400)
committerBen Gamari <ben@well-typed.com>
Sat, 8 Jun 2019 17:34:18 +0000 (13:34 -0400)
commitfe9653160be3b025698be9a2a2141b2b87b8ef55
tree793a109b7ed88698227533db1077bf0542ace37e
parent310d0c4cbc2c847d24408bab92cdae0ed5cc4799
gitlab-ci: Use --unshallow when fetching for linters

GitLab creates a shallow clone. However, this means that we may not have
the base commit of an MR when linting, causing `git merge-base` to fail.
Fix this by passing `--unshallow` to `git fetch`, ensuring that we have
the entire history.
.gitlab-ci.yml