ci: use last "git fetch" output to test commitlint

When running in the CI the git repository is not completely cloned. This
causes the 'commitlint' job to be unable to resolve the history of the
commits.

By using FETCH_HEAD, the last 'git fetch' output will be used.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-08-12 17:03:12 +02:00 committed by Madhu Rajanna
parent 2b180d89c5
commit 9bd91bc9d3

View File

@ -121,7 +121,7 @@ check-env:
commitlint:
git fetch -v $(shell cut -d/ -f1 <<< "$(GIT_SINCE)") $(shell cut -d/ -f2- <<< "$(GIT_SINCE)")
commitlint --from $(GIT_SINCE)
commitlint --from FETCH_HEAD
.PHONY: cephcsi
cephcsi: check-env