summaryrefslogtreecommitdiff
path: root/src/flake8
diff options
context:
space:
mode:
authorSergey <sergey@skovorodkin.com>2016-08-14 22:19:03 +0000
committerSergey <sergey@skovorodkin.com>2016-08-14 22:19:03 +0000
commit2eec5060e9ddbb2cb18add3ae88723279a2f2ea9 (patch)
tree465af2864be8883a9eee33f62c1b7114ba63afbd /src/flake8
parenta09c9acaaf9beb16afdfb788b5b8ab4dd65ca4bd (diff)
downloadflake8-2eec5060e9ddbb2cb18add3ae88723279a2f2ea9.tar.gz
Consider `lazy` parameter in git.find_modified_files function
Refer to https://gitlab.com/pycqa/flake8/blob/867727f30408d53d743b1b6bb3cba4b7d33039c6/old/flake8/hooks.py#L34
Diffstat (limited to 'src/flake8')
-rw-r--r--src/flake8/main/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flake8/main/git.py b/src/flake8/main/git.py
index 8603f67..642ff38 100644
--- a/src/flake8/main/git.py
+++ b/src/flake8/main/git.py
@@ -141,7 +141,7 @@ def make_temporary_directory_from(destination, directory):
def find_modified_files(lazy):
diff_index = piped_process(
- ['git', 'diff-index', '--cached', '--name-only',
+ ['git', 'diff-index', '' if lazy else '--cached', '--name-only',
'--diff-filter=ACMRTUXB', 'HEAD'],
)