@@ -325,7 +325,7 @@ - (id)lookUpObjectByGitOid:(const git_oid *)oid objectType:(GTObjectType)type er
325325 return nil ;
326326 }
327327
328- return [GTObject objectWithObj: obj inRepository: self ];
328+ return [GTObject objectWithObj: obj inRepository: self ];
329329}
330330
331331- (id )lookUpObjectByGitOid : (const git_oid *)oid error : (NSError **)error {
@@ -377,7 +377,7 @@ - (GTBranch *)lookUpBranchWithName:(NSString *)branchName type:(GTBranchType)bra
377377 if (ref == NULL ) return nil ;
378378
379379 GTReference *gtRef = [[GTReference alloc ] initWithGitReference: ref repository: self ];
380- return [[GTBranch alloc ] initWithReference: gtRef repository: self ];
380+ return [[GTBranch alloc ] initWithReference: gtRef];
381381}
382382
383383- (GTReference *)headReferenceWithError : (NSError **)error {
@@ -409,7 +409,7 @@ - (BOOL)enumerateBranchesWithType:(GTBranchType)type error:(NSError **)error usi
409409 git_branch_t branchType;
410410 while ((gitError = git_branch_next (&gitRef, &branchType, iter)) == GIT_OK) {
411411 GTReference *ref = [[GTReference alloc ] initWithGitReference: gitRef repository: self ];
412- GTBranch *branch = [GTBranch branchWithReference: ref repository: self ];
412+ GTBranch *branch = [GTBranch branchWithReference: ref];
413413 BOOL stop = NO ;
414414 block (branch, &stop);
415415 if (stop) break ;
@@ -457,7 +457,7 @@ - (NSArray *)branchesWithPrefix:(NSString *)prefix error:(NSError **)error {
457457 GTReference *ref = [self lookUpReferenceWithName: refName error: error];
458458 if (ref == nil ) continue ;
459459
460- GTBranch *branch = [[GTBranch alloc ] initWithReference: ref repository: self ];
460+ GTBranch *branch = [[GTBranch alloc ] initWithReference: ref];
461461 if (branch == nil ) continue ;
462462
463463 [branches addObject: branch];
@@ -594,7 +594,7 @@ - (GTBranch *)createBranchNamed:(NSString *)name fromOID:(GTOID *)targetOID mess
594594 GTReference *newRef = [self createReferenceNamed: [GTBranch.localNamePrefix stringByAppendingString: name] fromOID: targetOID message: message error: error];
595595 if (newRef == nil ) return nil ;
596596
597- return [GTBranch branchWithReference: newRef repository: self ];
597+ return [GTBranch branchWithReference: newRef];
598598}
599599
600600- (BOOL )isEmpty {
@@ -605,7 +605,7 @@ - (GTBranch *)currentBranchWithError:(NSError **)error {
605605 GTReference *head = [self headReferenceWithError: error];
606606 if (head == nil ) return nil ;
607607
608- return [GTBranch branchWithReference: head repository: self ];
608+ return [GTBranch branchWithReference: head];
609609}
610610
611611- (NSArray *)localCommitsRelativeToRemoteBranch : (GTBranch *)remoteBranch error : (NSError **)error {
0 commit comments