Make git log --pretty < v1.5.6 compatible

removes the %x01 syntax which is only available in 1.5.6 and later
This commit is contained in:
Pieter de Bie
2008-06-14 20:06:58 +02:00
parent 3dd9e2a41c
commit ce61cdf46f
+1 -1
View File
@@ -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];