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 mergify[bot]
parent 0e19f37f61
commit 209b31c83a

View File

@ -55,7 +55,7 @@ lint-yaml:
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: containerized-test
containerized-test: .test-container-id