Skip to content

Commit

Permalink
exclude .exp files from whitespace checks in scripts/git-checks.sh (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brmataptos authored Mar 4, 2024
1 parent a7a474f commit 3023c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/git-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ done
for rev in $(git rev-list $oldrev..$newrev); do
comparison=$(git rev-parse --quiet --verify $rev^ || true)

whitespace=$(git diff --check $comparison $rev || true)
whitespace=$(git diff --check $comparison $rev -- . ':!*.exp' || true)
if [[ $whitespace ]] ; then
echo "Found whitespace errors in commit $rev:"
echo
git diff --check $comparison $rev
git diff --check $comparison $rev -- . ':!*.exp'
exit 1
fi
done

0 comments on commit 3023c2b

Please sign in to comment.