diff --git a/pre_commit_hooks/util.py b/pre_commit_hooks/util.py index 7c2175e..bacb242 100644 --- a/pre_commit_hooks/util.py +++ b/pre_commit_hooks/util.py @@ -11,7 +11,7 @@ class CalledProcessError(RuntimeError): def added_files(): return set(cmd_output( - 'git', 'diff', '--staged', '--name-only', '--diff-filter', 'A', + 'git', 'diff', '--staged', '--name-only', '--diff-filter=A', ).splitlines())