Skip to content

Cloning repository with SSH url #272

Description

@amackera

Hello! Let me prefix this by pointing out that I don't know much about git, libgit2, or pygit2, so please forgive me if this issue is absurd.

It seems to me that pygit2 breaks when trying to clone repositories from "SSH" URLs.

The following code will result in a segmentation fault from the most recent pygit2 package from pip:

from pygit2 import clone_repository

if __name__ == '__main__':
    repo = clone_repository(
        'git@github.com:libgit2/pygit2.git',
        'pygit2')

However the HTTP URL works as expected. Is this intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions