mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
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:
parent
2b180d89c5
commit
9bd91bc9d3
2
Makefile
2
Makefile
@ -121,7 +121,7 @@ check-env:
|
|||||||
|
|
||||||
commitlint:
|
commitlint:
|
||||||
git fetch -v $(shell cut -d/ -f1 <<< "$(GIT_SINCE)") $(shell cut -d/ -f2- <<< "$(GIT_SINCE)")
|
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
|
.PHONY: cephcsi
|
||||||
cephcsi: check-env
|
cephcsi: check-env
|
||||||
|
Loading…
Reference in New Issue
Block a user