We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 526f246 commit 8249c96Copy full SHA for 8249c96
PBGitRepository.m
@@ -303,8 +303,9 @@ -(NSNumber *)countCommintsOf:(NSString *)branchs
303
{
304
NSLog(@"branchs:'%@'",branchs);
305
NSArray *args = [NSArray arrayWithObjects:@"rev-list", branchs, nil];
306
- NSString *o = [self outputForArguments:args];
307
- if ([o length]==0) {
+ int ret;
+ NSString *o = [self outputForArguments:args retValue:&ret];
308
+ if ((ret!=0) || ([o length]==0)) {
309
return NULL;
310
}
311
NSArray *commits = [o componentsSeparatedByString:@"\n"];
0 commit comments