libgit2 / git2go

Git to Go; bindings for libgit2. Like McDonald's but tastier.
MIT License
1.93k stars 314 forks source link

Clone with SSH URLs? #885

Open unity-emilk opened 2 years ago

unity-emilk commented 2 years ago

Calling Clone with an SSH URL like: repo, err := Clone("git@github.com:owner/repo.git", "/some/path", opts)

Returns an error from net/url like: parse \"git@github.com:owner/repo.git\": first path segment in URL cannot contain colon.

Is calling Clone with an SSH URL not supported?

go1.17.6.linux-amd6 libgit2 version 1.3 git2go v33.0.6

unity-emilk commented 2 years ago

Cloning with a ssh remote like ssh://git@github.com/owner/repo.git works.