File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -269,9 +269,7 @@ + (id)cloneFromURL:(NSURL *)originURL toWorkingDirectory:(NSURL *)workdirURL opt
269
269
270
270
NSURL *serverCertificateURL = options[GTRepositoryCloneOptionsServerCertificateURL];
271
271
if (serverCertificateURL) {
272
- const char *file = serverCertificateURL.fileSystemRepresentation ;
273
- const char *path = NULL ;
274
- int gitError = git_libgit2_opts (GIT_OPT_SET_SSL_CERT_LOCATIONS, file, path);
272
+ int gitError = git_libgit2_opts (GIT_OPT_SET_SSL_CERT_LOCATIONS, serverCertificateURL.fileSystemRepresentation , NULL );
275
273
if (gitError < GIT_OK) {
276
274
if (error != NULL ) *error = [NSError git_errorFor: gitError description: @" Failed to configure the server certificate at %@ " , serverCertificateURL];
277
275
return nil ;
You can’t perform that action at this time.
0 commit comments