summaryrefslogtreecommitdiff
path: root/src/flake8
diff options
context:
space:
mode:
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'],
)