From 209b31c83ae3d886bb87668b3772b7f55018ca2f Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 12 Aug 2020 17:03:12 +0200 Subject: [PATCH] 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a34b92b35..188e34b28 100644 --- a/Makefile +++ b/Makefile @@ -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