Fix staged_files_only for color.diff always. Closes #176.

This commit is contained in:
Anthony Sottile 2014-10-07 17:40:20 -07:00
parent b2cb0f6fe6
commit 0479f78b4d
2 changed files with 9 additions and 1 deletions

View file

@ -21,7 +21,10 @@ def staged_files_only(cmd_runner):
"""
# Determine if there are unstaged files
retcode, diff_stdout_binary, _ = cmd_runner.run(
['git', 'diff', '--ignore-submodules', '--binary', '--exit-code'],
[
'git', 'diff', '--ignore-submodules', '--binary', '--exit-code',
'--no-color',
],
retcode=None,
encoding=None,
)