Skip to content

Commit f84526e

Browse files
committed
Attempting to fix issue with push transfer progress not being invoked
1 parent bde1713 commit f84526e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ObjectiveGit/GTRepository+RemoteOperations.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ - (BOOL)pushRefspecs:(NSArray *)refspecs toRemote:(GTRemote *)remote withOptions
219219

220220
git_remote_callbacks remote_callbacks = GIT_REMOTE_CALLBACKS_INIT;
221221
remote_callbacks.credentials = (credProvider != nil ? GTCredentialAcquireCallback : NULL),
222-
remote_callbacks.transfer_progress = GTRemoteFetchTransferProgressCallback,
222+
remote_callbacks.push_transfer_progress = GTRemotePushTransferProgressCallback;
223223
remote_callbacks.payload = &connectionInfo,
224224

225225
gitError = git_remote_connect(remote.git_remote, GIT_DIRECTION_PUSH, &remote_callbacks);
@@ -238,6 +238,8 @@ - (BOOL)pushRefspecs:(NSArray *)refspecs toRemote:(GTRemote *)remote withOptions
238238
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to init push options"];
239239
return NO;
240240
}
241+
242+
push_options.callbacks = remote_callbacks;
241243

242244
const git_strarray git_refspecs = refspecs.git_strarray;
243245

0 commit comments

Comments
 (0)