@@ -178,56 +178,56 @@ - (BOOL)pushBranches:(NSArray *)branches toRemote:(GTRemote *)remote withOptions
178178 return [self pushBranches: branches toRemote: remote withOptions: options withNotesReferenceName: nil error: error progress: progressBlock];
179179}
180180
181- - (BOOL )pushBranches : (NSArray *)branches toRemote : (GTRemote *)remote withOptions : (NSDictionary *)options withNotesReferenceName : (NSString *)referenceName error : (NSError **)error progress : (GTRemotePushTransferProgressBlock)progressBlock {
181+ - (BOOL )pushBranches : (NSArray *)branches toRemote : (GTRemote *)remote withOptions : (NSDictionary *)options withNotesReferenceName : (NSString *)referenceName error : (NSError **)error progress : (GTRemotePushTransferProgressBlock)progressBlock {
182182 NSParameterAssert (branches != nil );
183183 NSParameterAssert (branches.count != 0 );
184184 NSParameterAssert (remote != nil );
185-
185+
186186 NSMutableArray *refspecs = nil ;
187187 // Build refspecs for the passed in branches
188188 refspecs = [NSMutableArray arrayWithCapacity: branches.count];
189189 for (GTBranch *branch in branches) {
190190 // Default remote reference for when branch doesn't exist on remote - create with same short name
191191 NSString *remoteBranchReference = [NSString stringWithFormat: @" refs/heads/%@ " , branch.shortName];
192-
192+
193193 BOOL success = NO ;
194194 GTBranch *trackingBranch = [branch trackingBranchWithError: error success: &success];
195-
195+
196196 if (success && trackingBranch != nil ) {
197197 // Use remote branch short name from trackingBranch, which could be different
198198 // (e.g. refs/heads/master:refs/heads/my_master)
199199 remoteBranchReference = [NSString stringWithFormat: @" refs/heads/%@ " , trackingBranch.shortName];
200200 }
201-
201+
202202 [refspecs addObject: [NSString stringWithFormat: @" refs/heads/%@ :%@ " , branch.shortName, remoteBranchReference]];
203203 }
204204
205205 // Also push the notes reference, if needed.
206206 if (referenceName != nil ) {
207207 // but check whether the reference exists for the repo, otherwise, our push will fail
208- GTReference* notesRef = [self lookUpReferenceWithName: referenceName error: nil ];
209-
210- if (notesRef != nil )
208+ GTReference * notesRef = [self lookUpReferenceWithName: referenceName error: nil ];
209+
210+ if (notesRef != nil ) {
211211 [refspecs addObject: [NSString stringWithFormat: @" %@ :%@ " , referenceName, referenceName]];
212+ }
212213 }
213214
214215 return [self pushRefspecs: refspecs toRemote: remote withOptions: options error: error progress: progressBlock];
215216}
216217
217218- (BOOL )pushNotes : (NSString *)noteRef toRemote : (GTRemote *)remote withOptions : (NSDictionary *)options error : (NSError **)error progress : (GTRemotePushTransferProgressBlock)progressBlock {
218219 NSParameterAssert (remote != nil );
219-
220+
220221 if (noteRef == nil ) {
221222 noteRef = [GTNote defaultReferenceNameForRepository: self error: error];
222223
223224 if (noteRef == nil ) return NO ;
224225 }
225-
226- GTReference* notesReference = [self lookUpReferenceWithName: noteRef error: error];
227-
228- if (notesReference == nil )
229- return NO ; // error will be pre-filled with the lookUpReferenceWithName call
230-
226+
227+ GTReference *notesReference = [self lookUpReferenceWithName: noteRef error: error];
228+
229+ if (notesReference == nil ) return NO ;
230+
231231 return [self pushRefspecs: @[[NSString stringWithFormat: @" %@ :%@ " , noteRef, noteRef]] toRemote: remote withOptions: options error: error progress: progressBlock];
232232}
233233
0 commit comments