Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

[WIP] Git remotes #561

Closed

Conversation

AnthonySteele
Copy link
Member

Git remotes

Work for #560

Check for implicit ssh url format
@AnthonySteele
Copy link
Member Author

AnthonySteele commented Nov 25, 2018

I am going to close this PR. I might try a different approach some time.
I was aiming at getting the "local repo" to work with github.
We can inspect the local repo folder and ask libgit2sharp for the remotes, and it come back successfully as e.g. in my case: origin: git@github.com:AnthonySteele/NuKeeper.git
This is a URL, but only if you prefix it with ssh, e.g. ssh:git@github.com:AnthonySteele/NuKeeper.git

The issue is that LibGit2sharp does not support these sh urls well: libgit2/libgit2sharp#1422
I get LibGit2SharpException : unsupported URL protocol

So there's no point parsing them.
You can probably build an equivalent https github url for the ssh url, not sure if that's a bad hack?

@AnthonySteele AnthonySteele deleted the git-remotes branch January 20, 2019 17:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant