From 893ff758f15525945743c45e3e28abe210d19e70 Mon Sep 17 00:00:00 2001 From: Joseph Herlant Date: Tue, 29 Oct 2019 18:43:21 -0700 Subject: cleanup:ci:Simplify the listing of files for sanity check (#929) --- scripts/ci_sanity_checks.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/ci_sanity_checks.sh b/scripts/ci_sanity_checks.sh index 33d05263c..de46d5f15 100755 --- a/scripts/ci_sanity_checks.sh +++ b/scripts/ci_sanity_checks.sh @@ -24,12 +24,7 @@ check_diff(){ } # List the files that are different from the trunk -from=$(git rev-parse refs/remotes/origin/trunk) -to=$(git rev-parse HEAD) -interval=${from}..${to} -[[ "${from}" == "${to}" ]] && interval=${to} - -for f in $(git diff --name-only ${interval} | sort -u); do +for f in $(git diff --name-only refs/remotes/origin/trunk | sort -u); do if [[ "${f}" =~ navit/support/ ]] || [[ "${f}" =~ navit/fib-1\.1/ ]] || [[ "${f}" =~ navit/traffic/permanentrestrictions/ ]] ; then echo "[DEBUG] Skipping file ${f} ..." continue -- cgit v1.2.1