Fix git hook

This commit is contained in:
huhao 2012-11-26 11:22:26 +08:00
parent c2bb12db6c
commit 472cc21380

View file

@ -160,7 +160,7 @@ def git_hook(complexity=-1, strict=False, ignore=None, lazy=False):
continue
if not os.path.exists(filename):
continue
warnings += check_file(filename, complexity)
warnings += check_file(path=filename, ignore=ignore, complexity=complexity)
if strict:
return warnings