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 041586b commit 302d1cfCopy full SHA for 302d1cf
ObjectiveGit/GTRepository+RemoteOperations.m
@@ -184,7 +184,7 @@ - (BOOL)pushBranches:(NSArray *)branches toRemote:(GTRemote *)remote withOptions
184
BOOL success = NO;
185
GTBranch *trackingBranch = [branch trackingBranchWithError:error success:&success];
186
187
- if (success && trackingBranch) {
+ if (success && trackingBranch != nil) {
188
// Use remote branch short name from trackingBranch, which could be different
189
// (e.g. refs/heads/master:refs/heads/my_master)
190
remoteBranchReference = [NSString stringWithFormat:@"refs/heads/%@", trackingBranch.shortName];
0 commit comments