-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Unable to clone from ssh repositories #640
Comments
This error message usually means |
the same error, how to fix it? |
You need to compile libgit2 with SSH support enabled, which entails having libssh2 installed as well. Normally |
I have tried recompiling libssh2 but the error still occurs, so finally I directly download the complied framework and embed this one in my project |
Strange… Can you check the output of git_libgit2_features to make sure the SSH support is enabled in your build ? |
As @wadxm mentioned, I use |
Glad to hear you've got it working. #643 has updated libssh2 to 1.8.0, which works against the "new" GitHub cryptosuite. |
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 :-)
The text was updated successfully, but these errors were encountered: