Skip to content

Commit 41d72a9

Browse files
committed
Specify return type of -refs
1 parent 8d20dad commit 41d72a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Classes/git/PBGitRepository.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef enum branchFilterTypes {
4949
@property (nonatomic, readonly, strong) NSArray <PBGitRevSpecifier *> *branches;
5050
@property (nonatomic, strong) NSMutableOrderedSet <PBGitRevSpecifier *> *branchesSet;
5151
@property (nonatomic, strong) PBGitRevSpecifier *currentBranch;
52-
@property (nonatomic, strong) NSMutableDictionary* refs;
52+
@property (nonatomic, strong) NSMutableDictionary <GTOID *, NSMutableArray <PBGitRef *> *> *refs;
5353
@property (readonly, strong) GTRepository* gtRepo;
5454
@property (nonatomic, readonly) BOOL isShallowRepository;
5555

Classes/git/PBGitRepository.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ - (GTOID *)OIDForRef:(PBGitRef *)ref
323323

324324
for (GTOID *sha in refs)
325325
{
326-
NSMutableSet *refsForSha = [refs objectForKey:sha];
326+
NSMutableArray *refsForSha = [refs objectForKey:sha];
327327
for (PBGitRef *existingRef in refsForSha)
328328
{
329329
if ([existingRef isEqualToRef:ref])

0 commit comments

Comments
 (0)