From 7842b514ed7312f2b59b02a5952a54dbcec335cc Mon Sep 17 00:00:00 2001
From: Virgile Prevosto <virgile.prevosto@m4x.org>
Date: Mon, 29 Jan 2024 16:31:25 +0100
Subject: [PATCH] [git-hooks] -z everywhere, yay

---
 dev/check-files.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/check-files.sh b/dev/check-files.sh
index 0d427935011..5bc87e486f9 100755
--- a/dev/check-files.sh
+++ b/dev/check-files.sh
@@ -88,8 +88,8 @@ else
     rm -f "$TMP_STAGED" "$TMP_UNSTAGED" "$TMP_INPUT" "$TMP_INTER"
   }
   trap cleanup exit
-  git diff --diff-filter ACMR --name-only $DIFF_ARG | sort > "$TMP_STAGED"
-  git diff --diff-filter DMR --name-only | sort > "$TMP_UNSTAGED"
+  git diff -z --diff-filter ACMR --name-only $DIFF_ARG | sort -z > "$TMP_STAGED"
+  git diff -z --diff-filter DMR --name-only | sort -z > "$TMP_UNSTAGED"
 
   if [ ! -s "$TMP_STAGED" ];
   then
-- 
GitLab