summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-10-24 06:39:11 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-10-24 06:39:11 -0500
commit0285359a1418def10b4dbd3c94af7855bad54eca (patch)
treeb3d0afd44837e53b4b747837940479b3a5596144 /src
parent7fc699e28bda8678d60d7a152a2341781f02220b (diff)
parent2eec5060e9ddbb2cb18add3ae88723279a2f2ea9 (diff)
downloadflake8-0285359a1418def10b4dbd3c94af7855bad54eca.tar.gz
Merge branch 'patch-1' of skovorodkin/flake8
Diffstat (limited to 'src')
-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'],
)