diff --git a/scripts/git-checks.sh b/scripts/git-checks.sh index f402bcb3fbef4..663451a9d02a1 100755 --- a/scripts/git-checks.sh +++ b/scripts/git-checks.sh @@ -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