Skip to content

Commit

Permalink
cleanup:ci:Simplify the listing of files for sanity check (navit-gps#929
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aerostitch authored and jkoan committed Jun 30, 2021
1 parent 9e507b3 commit 2d6b833
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/ci_sanity_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d6b833

Please sign in to comment.