From 5244f7751c10865df94980817cfbe99b7933d4d6 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 17 Jul 2014 08:34:48 +0200 Subject: Untested fix for #172 See https://github.com/gitpython-developers/GitPython/issues/172 for more information --- git/diff.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git/diff.py') diff --git a/git/diff.py b/git/diff.py index 8a4819ab..e90fc1cf 100644 --- a/git/diff.py +++ b/git/diff.py @@ -75,6 +75,10 @@ class Diffable(object): args.append("-M") # check for renames else: args.append("--raw") + + # in any way, assure we don't see colored output, + # fixes https://github.com/gitpython-developers/GitPython/issues/172 + args.append('--no-color') if paths is not None and not isinstance(paths, (tuple,list)): paths = [ paths ] -- cgit v1.2.1