diff options
Diffstat (limited to 'hooks/pre-commit')
| -rwxr-xr-x | hooks/pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit index 317ed48..1de33ca 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -6,7 +6,7 @@ git annex pre-commit . # check grammar of staged Markdown files check_grammar() { # get list of staged Markdown files (added or modified) - staged_files=$(git diff --cached --name-only --diff-filter=AM | grep '\.md$') + staged_files=$(git diff --cached --name-only --diff-filter=AM | grep '^content/.*\.md$') [ -z "$staged_files" ] && return 0 |
