Skip to content

Commit 5244f77

Browse files
committed
Untested fix for #172
See #172 for more information
1 parent c544101 commit 5244f77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: git/diff.py

+4
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ def diff(self, other=Index, paths=None, create_patch=False, **kwargs):
7575
args.append("-M") # check for renames
7676
else:
7777
args.append("--raw")
78+
79+
# in any way, assure we don't see colored output,
80+
# fixes https://github.com/gitpython-developers/GitPython/issues/172
81+
args.append('--no-color')
7882

7983
if paths is not None and not isinstance(paths, (tuple,list)):
8084
paths = [ paths ]

0 commit comments

Comments
 (0)