Merge pull request #540 from dainyl/master

Fix for #533
This commit is contained in:
Anthony Sottile 2017-05-30 19:26:47 -07:00 committed by GitHub
commit cb71ea09ff

View file

@ -57,7 +57,7 @@ NO_FILES = '(no files to check)'
def _run_single_hook(hook, repo, args, skips, cols): def _run_single_hook(hook, repo, args, skips, cols):
filenames = get_filenames(args, hook['files'], hook['exclude']) filenames = get_filenames(args, hook.get('files', ''), hook['exclude'])
if hook['id'] in skips: if hook['id'] in skips:
output.write(get_hook_message( output.write(get_hook_message(
_hook_msg_start(hook, args.verbose), _hook_msg_start(hook, args.verbose),