From: Guillaume Abrioux Date: Wed, 24 Oct 2018 14:30:44 +0000 (+0200) Subject: ceph-ansible-syntax: disable syntax coloration in `git_diff_to_head()` X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1176%2Fhead;p=ceph-build.git ceph-ansible-syntax: disable syntax coloration in `git_diff_to_head()` when running this code locally for debugging purposes, the sed in `match_file()` won't match the pattern because of the ANSI codes inserted by the git diff (colored) output. Signed-off-by: Guillaume Abrioux --- diff --git a/ceph-ansible-pr-syntax-check/build/build b/ceph-ansible-pr-syntax-check/build/build index 6afebe0b4..785f6fafe 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 origin/"${ghprbTargetBranch}"..HEAD + git diff --no-color origin/"${ghprbTargetBranch}"..HEAD } function match_file {