Skip to content

[iOS] Unable to clone from ssh repositories #640

@wadxm

Description

@wadxm

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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions