Skip to content
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

Clone with SSH URLs? #885

Open
unity-emilk opened this issue Jan 19, 2022 · 1 comment
Open

Clone with SSH URLs? #885

unity-emilk opened this issue Jan 19, 2022 · 1 comment

Comments

@unity-emilk
Copy link

Calling Clone with an SSH URL like:
repo, err := Clone("[email protected]:owner/repo.git", "/some/path", opts)

Returns an error from net/url like: parse \"[email protected]: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
Copy link
Author

Cloning with a ssh remote like ssh://[email protected]/owner/repo.git works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant