From a23c58298cce79482180c38a2c1afadddcab6c5b Mon Sep 17 00:00:00 2001 From: Corey Christous Date: Tue, 1 Dec 2015 16:59:22 -0500 Subject: [PATCH] Reformatted --diff-filter git argument This makes the command compatible with older versions of git. --- pre_commit_hooks/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())