Actually use the exclude pattern. Closes #47.

This commit is contained in:
Anthony Sottile 2014-03-31 23:35:25 -07:00
parent ac67af21ec
commit 535be5b33a
3 changed files with 17 additions and 8 deletions

View file

@ -35,7 +35,7 @@ def _run_single_hook(runner, repository, hook_id, all_files=False):
retcode, stdout, stderr = repository.run_hook(
runner.cmd_runner,
hook_id,
get_filenames(hook['files']),
get_filenames(hook['files'], hook['exclude']),
)
if retcode != repository.hooks[hook_id]['expected_return_value']: