Followup to #533, match no files when omitted

This commit is contained in:
Anthony Sottile 2017-06-02 08:39:10 -07:00
parent fc907b512a
commit e150921c75

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.get('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),