libgit2/objective-git — pull request #246 by isaac (2013-08-29 22:43:28+00:00)
Title: iOS error cloning https repositories: The SSL certificate is invalid

Code to reproduce error:

```objective-c
NSURL *url = [NSURL URLWithString:@"https://github.com/isaac/test.git"];
NSURL *dir = [NSURL fileURLWithPath:@"/Users/Isaac/Downloads/test"];
NSError *error = nil;
[GTRepository cloneFromURL:url toWorkingDirectory:dir barely:YES withCheckout:NO error:&error transferProgressBlock:NULL checkoutProgressBlock:NULL];
NSLog(@"%@", error);
```

Full error:

```
2013-08-30 10:27:27.179 CloneiOS[69861:a0b] Error Domain=GTGitErrorDomain Code=-1 "Failed to clone repository from https://github.com/isaac/test.git to file:///Users/Isaac/Downloads/test" UserInfo=0x98c2f00 {NSUnderlyingError=0x98c2c20 "The SSL certificate is invalid", NSLocalizedDescription=Failed to clone repository from https://github.com/isaac/test.git to file:///Users/Isaac/Downloads/test}
```

The code above clones the repository successfully on Mac OS X with no errors.

This pull request suppresses the error on iOS, but I'm not sure if this is the right way to go.

Thoughts?