git.iko.soy/typeable/pandoc
on master help sign in
Fix pre-commit hook so it doesn't catch .latex+lhs extensions.
ce606cbJohn MacFarlane
CONTRIBUTING.md+1−1
@@ -225,7 +225,7 @@ A good way to ensure no new warnings are introduced is to use a Git
225before creating a commit:
225before creating a commit:
226
226
227 #!/bin/sh
227 #!/bin/sh
228− git diff --cached --name-only | grep '.hs$' | xargs hlint
228+ git diff --cached --name-only | grep '\.hs$' | xargs hlint
229
229
230Saving this to `.git/hooks/pre-commit`, and making the script
230Saving this to `.git/hooks/pre-commit`, and making the script
231executable, will prevent accidental introduction of potentially
231executable, will prevent accidental introduction of potentially