File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -154,12 +154,13 @@ - (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(
154
154
}
155
155
156
156
for (PBGitSVBranchItem* branch in [branches children ]){
157
- NSString *bName=[branch title ];
158
- [branch setAhead: [self countCommintsOf: [NSString stringWithFormat: @" origin/%@ ..%@ " ,bName,bName]]];
159
- [branch setBehind: [self countCommintsOf: [NSString stringWithFormat: @" %@ ..origin/%@ " ,bName,bName]]];
160
- [branch setIsCheckedOut: [branch.revSpecifier isEqual: [repository headRef ]]];
157
+ if ([branch isKindOfClass: [PBGitSVBranchItem class ]]){
158
+ NSString *bName=[branch title ];
159
+ [branch setAhead: [self countCommintsOf: [NSString stringWithFormat: @" origin/%@ ..%@ " ,bName,bName]]];
160
+ [branch setBehind: [self countCommintsOf: [NSString stringWithFormat: @" %@ ..origin/%@ " ,bName,bName]]];
161
+ [branch setIsCheckedOut: [branch.revSpecifier isEqual: [repository headRef ]]];
162
+ }
161
163
}
162
-
163
164
}else {
164
165
[super observeValueForKeyPath: keyPath ofObject: object change: change context: context];
165
166
}
You can’t perform that action at this time.
0 commit comments