From 9bd91bc9d38e9fd63aea796b0dde8b456446946e 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 f7f9e1220..e989f88a2 100644 --- a/Makefile +++ b/Makefile @@ -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