From ce61cdf46f2948bf323102f550a15e1bc2b86abc Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Sat, 14 Jun 2008 20:06:58 +0200 Subject: [PATCH] Make git log --pretty < v1.5.6 compatible removes the %x01 syntax which is only available in 1.5.6 and later --- PBGitRepository.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBGitRepository.m b/PBGitRepository.m index 8f639de..0f22ec9 100644 --- a/PBGitRepository.m +++ b/PBGitRepository.m @@ -65,7 +65,7 @@ static NSString* gitPath = @"/usr/bin/env"; if (commits != nil) return commits; - NSFileHandle* handle = [self handleForCommand:@"log --pretty=format:%H%x01%s%x01%an HEAD"]; + NSFileHandle* handle = [self handleForCommand:@"log --pretty=format:%H\01%s\01%an HEAD"]; NSMutableArray * newArray = [NSMutableArray array]; NSString* currentLine = [handle readLine];