mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-25 08:29:21 -05:00
Fix hooks that apply non-utf8 diffs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user