We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64aa5a9 commit e051effCopy full SHA for e051eff
ObjectiveGit/GTRepository.m
@@ -411,7 +411,7 @@ - (NSArray *)branches:(NSError **)error {
411
NSMutableArray *branches = [NSMutableArray array];
412
for (GTBranch *branch in localBranches) {
413
GTBranch *trackingBranch = [branch trackingBranchWithError:NULL success:NULL];
414
- [remoteBranches removeObject:trackingBranch];
+ if (trackingBranch != nil) [remoteBranches removeObject:trackingBranch];
415
[branches addObject:branch];
416
}
417
0 commit comments