Skip to content

Commit

Permalink
Fix #318: need to use the branch name, not full ref path when calling…
Browse files Browse the repository at this point in the history
… lookUpBranchWithName
  • Loading branch information
rowanj committed May 15, 2014
1 parent 9b834c4 commit 3be5541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/git/PBGitRepository.m
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ - (PBGitRef *) remoteRefForBranch:(PBGitRef *)branch error:(NSError **)error
if (branchRef) {
NSError *branchError = nil;
BOOL lookupSuccess = NO;
GTBranch *gtBranch = [self.gtRepo lookUpBranchWithName:branchRef type:GTBranchTypeLocal success:&lookupSuccess error:&branchError];
GTBranch *gtBranch = [self.gtRepo lookUpBranchWithName:branch.branchName type:GTBranchTypeLocal success:&lookupSuccess error:&branchError];
if (gtBranch && lookupSuccess) {
NSError *trackingError = nil;
BOOL trackingSuccess = NO;
Expand Down

0 comments on commit 3be5541

Please sign in to comment.