Pass correct value to git color based on args.color

This commit is contained in:
Mandar Vaze 2019-06-01 17:33:27 +05:30
parent 64f0178b75
commit 3d7b374bef
2 changed files with 10 additions and 3 deletions

View file

@ -184,7 +184,13 @@ def test_global_exclude(cap_out, store, tempdir_factory):
(
{
'show_diff_on_failure': True,
'color': 'auto',
},
b'All changes made by hooks:',
),
(
{
'show_diff_on_failure': True,
'color': True,
},
b'All changes made by hooks:',
),
@ -192,7 +198,6 @@ def test_global_exclude(cap_out, store, tempdir_factory):
{
'show_diff_on_failure': True,
'all_files': True,
'color': 'auto',
},
b'reproduce locally with: pre-commit run --all-files',
),