Fix hooks that apply non-utf8 diffs

This commit is contained in:
Anthony Sottile 2015-11-13 10:08:37 -08:00
parent a7e66abfdd
commit 4b2f83d11e
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash
for f in $@; do
echo modified > "$f"
# Non UTF-8 bytes
echo -e '\x01\x97' > "$f"
echo "Modified: $f!"
done