@@ -199,12 +199,10 @@ - (BOOL)pushRefspecs:(NSArray *)refspecs toRemote:(GTRemote *)remote withOptions
199199 .pushProgressBlock = progressBlock,
200200 };
201201
202- git_remote_callbacks remote_callbacks = {
203- .version = GIT_REMOTE_CALLBACKS_VERSION,
204- .credentials = (credProvider != nil ? GTCredentialAcquireCallback : NULL ),
205- .transfer_progress = GTRemoteFetchTransferProgressCallback,
206- .payload = &connectionInfo,
207- };
202+ git_remote_callbacks remote_callbacks = GIT_REMOTE_CALLBACKS_INIT;
203+ remote_callbacks.credentials = (credProvider != nil ? GTCredentialAcquireCallback : NULL ),
204+ remote_callbacks.transfer_progress = GTRemoteFetchTransferProgressCallback,
205+ remote_callbacks.payload = &connectionInfo,
208206
209207 gitError = git_remote_set_callbacks (remote.git_remote , &remote_callbacks);
210208 if (gitError != GIT_OK) {
@@ -233,10 +231,8 @@ - (BOOL)pushRefspecs:(NSArray *)refspecs toRemote:(GTRemote *)remote withOptions
233231 git_push_free (push);
234232 };
235233
236- git_push_options push_options = { // GIT_PUSH_OPTIONS_INIT;
237- .version = GIT_PUSH_OPTIONS_VERSION,
238- .pb_parallelism = 1 ,
239- };
234+ git_push_options push_options = GIT_PUSH_OPTIONS_INIT;
235+
240236 gitError = git_push_set_options (push, &push_options);
241237 if (gitError != GIT_OK) {
242238 if (error != NULL ) *error = [NSError git_errorFor: gitError description: @" Failed to add options" ];
0 commit comments