PBGitCommit: Call git show with --no-color to be safe

This fixes ticket #132, where setting color.ui = always in the gitconfig
caused GitX to received colorized output for "git show", thereby
destroying the diff-output.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
This commit is contained in:
Johannes Gilger
2009-04-02 12:19:52 +02:00
committed by Pieter de Bie
parent 16244df346
commit 6912add00e
+1 -1
View File
@@ -73,7 +73,7 @@
if (details != nil)
return details;
details = [self.repository outputForArguments:[NSArray arrayWithObjects:@"show", @"--pretty=raw", @"-M", [self realSha], nil]];
details = [self.repository outputForArguments:[NSArray arrayWithObjects:@"show", @"--pretty=raw", @"-M", @"--no-color", [self realSha], nil]];
return details;
}