From 24fd8c8bbeb60099ee7b0b672a3117193d8e16d7 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 24 Oct 2018 16:30:44 +0200 Subject: [PATCH] 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 --- ceph-ansible-pr-syntax-check/build/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.3