From 6912add00eb83a1d7ab396cea7ff5ad640fedfd1 Mon Sep 17 00:00:00 2001 From: Johannes Gilger Date: Thu, 2 Apr 2009 12:19:52 +0200 Subject: [PATCH] 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 --- PBGitCommit.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBGitCommit.m b/PBGitCommit.m index dbfdbdf..2e1c070 100644 --- a/PBGitCommit.m +++ b/PBGitCommit.m @@ -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; }