Skip to content

Commit 5269363

Browse files
committed
Use the short name.
1 parent 7c64ab7 commit 5269363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ObjectiveGit/GTBranch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ - (GTBranch *)trackingBranchWithError:(NSError **)error success:(BOOL *)success
206206
}
207207

208208
- (BOOL)updateTrackingBranch:(GTBranch *)trackingBranch error:(NSError **)error {
209-
int result = git_branch_set_upstream(self.reference.git_reference, trackingBranch.name.UTF8String);
209+
int result = git_branch_set_upstream(self.reference.git_reference, trackingBranch.shortName.UTF8String);
210210
if (result != GIT_OK) {
211211
if (error != NULL) *error = [NSError git_errorFor:result description:@"Failed to update tracking branch for %@", self];
212212
return NO;

0 commit comments

Comments
 (0)