]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible syntax check 1193/head
authorSébastien Han <seb@redhat.com>
Mon, 5 Nov 2018 13:55:42 +0000 (14:55 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 5 Nov 2018 13:55:42 +0000 (14:55 +0100)
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 <seb@redhat.com>
ceph-ansible-pr-syntax-check/build/build

index 785f6fafe4059133ef4a8ded1d554e5d712d36cc..f2445bcb6637a22e8ffabaf4c388918857ee83e4 100644 (file)
@@ -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 {