Skip to content

Commit

Permalink
cleanup:ci:Simplify the listing of files for sanity check (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerostitch authored Oct 30, 2019
1 parent 4ab928c commit 893ff75
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 893ff75

Please sign in to comment.