We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c64ab7 commit 5269363Copy full SHA for 5269363
ObjectiveGit/GTBranch.m
@@ -206,7 +206,7 @@ - (GTBranch *)trackingBranchWithError:(NSError **)error success:(BOOL *)success
206
}
207
208
- (BOOL)updateTrackingBranch:(GTBranch *)trackingBranch error:(NSError **)error {
209
- int result = git_branch_set_upstream(self.reference.git_reference, trackingBranch.name.UTF8String);
+ int result = git_branch_set_upstream(self.reference.git_reference, trackingBranch.shortName.UTF8String);
210
if (result != GIT_OK) {
211
if (error != NULL) *error = [NSError git_errorFor:result description:@"Failed to update tracking branch for %@", self];
212
return NO;
0 commit comments