From: Sébastien Han Date: Mon, 5 Nov 2018 13:55:42 +0000 (+0100) Subject: ceph-ansible syntax check X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dedb939aef701ec8b53ec04714bd9c8dd4c351fc;p=ceph-build.git ceph-ansible syntax check Only check for Modified and Changed content, anything else is irrelevant especially remove, rename and will make the check fail. Signed-off-by: Sébastien Han --- diff --git a/ceph-ansible-pr-syntax-check/build/build b/ceph-ansible-pr-syntax-check/build/build index 785f6faf..f2445bcb 100644 --- a/ceph-ansible-pr-syntax-check/build/build +++ b/ceph-ansible-pr-syntax-check/build/build @@ -54,7 +54,7 @@ function group_vars_check { function git_diff_to_head { # shellcheck disable=SC2154 # ghprbTargetBranch variable comes from jenkins's injectedEnvVars - git diff --no-color origin/"${ghprbTargetBranch}"..HEAD + git diff --diff-filter=MT --no-color origin/"${ghprbTargetBranch}"..HEAD } function match_file {