shithub: dav1d

Download patch

ref: 5a42b8019934914074f233fd057f7f3253950b79
parent: 2dddfaac48cf69e491427dcebab96b8ea9e25500
author: Henrik Gramner <gramner@twoorioles.com>
date: Sun May 5 23:35:01 EDT 2019

ci: Ignore binary files in style check

--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,9 +10,9 @@
         - debian
         - amd64
     script:
-        - git grep -n -P "\t|\r| $" -- . ':(exclude)*/compat/*' && exit 1
-        - git grep -n -i "david" -- . ':(exclude)THANKS.md' ':(exclude).gitlab-ci.yml' && exit 1
-        - for i in $(git ls-files -- . ':(exclude)*/compat/*'); do
+        - git grep -I -n -P "\t|\r| $" -- . ':(exclude)*/compat/*' && exit 1
+        - git grep -I -n -i "david" -- . ':(exclude)THANKS.md' ':(exclude).gitlab-ci.yml' && exit 1
+        - git grep -I -l -z "" -- . ':(exclude)*/compat/*' | while IFS= read -r -d '' i; do
               if [ -n "$(tail -c 1 "$i")" ]; then
                   echo "No newline at end of $i";
                   exit 1;