We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdb2256 commit 9ad100bCopy full SHA for 9ad100b
1 file changed
pre-commit
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
3
# Introduce: https://github.com/wolfogre/git-text
4
-# Version: v1.0.4
+# Version: v1.0.5
5
6
set -e
7
@@ -10,7 +10,7 @@ if [[ -z "$FILES" ]]; then
10
exit 0
11
fi
12
13
-WRONG_FILES=$(file --mime-type ${FILES} | grep -v -E "(text/[A-Za-z0-9.+-]*|inode/(x-empty|directory|symlink)|application/json)$" | cat)
+WRONG_FILES=$(file --mime-type ${FILES} | grep -v -E "(text/[A-Za-z0-9.+-]*|inode/(x-empty|directory|symlink)|application/json|image/svg+xml)$" | cat)
14
15
if [[ -n "${WRONG_FILES}" ]]; then
16
echo "DELETE NON-TEXT FILES OR USE 'git commit -n':"
0 commit comments