summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJoseph Herlant <aerostitch@users.noreply.github.com>2019-10-29 18:43:21 -0700
committerGitHub <noreply@github.com>2019-10-29 18:43:21 -0700
commit893ff758f15525945743c45e3e28abe210d19e70 (patch)
tree93ecf3b950172994fffc755da31bdc92da1a2d65 /scripts
parent4ab928c6f17901e1a56aab75a16bfa56bd4bcec5 (diff)
downloadnavit-893ff758f15525945743c45e3e28abe210d19e70.tar.gz
cleanup:ci:Simplify the listing of files for sanity check (#929)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci_sanity_checks.sh7
1 files changed, 1 insertions, 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