This commit is contained in:
Dain Liffman 2017-05-31 10:09:42 +08:00
parent e5c9d3614b
commit d731652a22

View file

@ -57,7 +57,7 @@ NO_FILES = '(no files to check)'
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:
output.write(get_hook_message(
_hook_msg_start(hook, args.verbose),