-
Notifications
You must be signed in to change notification settings - Fork 282
Description
Hi, I'm trying to clone from a ssh repository with objective-git, but it failed with an "unsupported URL protocol" error, here's my code:
NSError *error; GTRepository *repo = [GTRepository cloneFromURL:[NSURL URLWithString:@"ssh://[email protected]/xxx"] toWorkingDirectory:directoryPath options:nil error:&error transferProgressBlock:nil];
After running, repo will be nil and here is the content of error:
Error Domain=GTGitErrorDomain Code=-1 "Failed to clone repository from ssh://[email protected]/ugc/AWELocalizations to file:///var/mobile/Containers/Data/Application/6BEF1FF1-94DB-4D01-8AD9-EA1E51937195/Documents/AWELocalizations" UserInfo={NSLocalizedDescription=Failed to clone repository from ssh://[email protected]/ugc/AWELocalizations to file:///var/mobile/Containers/Data/Application/6BEF1FF1-94DB-4D01-8AD9-EA1E51937195/Documents/AWELocalizations, NSUnderlyingError=0x1d40562c0 {Error Domain=GTGitErrorDomain Code=-1 "unsupported URL protocol" UserInfo={NSLocalizedDescription=unsupported URL protocol}}}
I'm wondering what's wrong with my configurations, thanks a lot :-)