Skip to content
Snippets Groups Projects
Commit 7842b514 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[git-hooks] -z everywhere, yay

parent 808e234d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment