Support for gitremote-helpers urls (e.g., transport::opaque-transport-uri)
#2786
Sebastian Thiel (Byron)
started this conversation in
Feature Proposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary 💡
Gitoxide currently fails to parse the URIs for any remote using a gitremote helper that accepts the second form of remote URI (e.g., git-remote-codecommit).
Ideally Gitoxide would eventually support invoking one of these helpers (#1666); however, until such time, it would be nice to be able to invoke
find_remoteand it not bail on parsing the uri.I can work around this by handling the err as such:
but then I lose the ability to use the
Remote<'_>.Using
try_find_remote_without_url_rewritedoes not help as the error from parsing the URL occurs before any rewriting:gitoxide/gix/src/repository/remote.rs
Lines 190 to 209 in c7af04d
Motivation 🔦
I have a lot of repos using AWS CodeCommit and that service closed to new customers last year prompting me to want to migrate my repos elsewhere. And, I want to use gix in the tooling I write to do that.
Originally proposed by Joachim Brandon LeBlanc (@demosdemon) in issue #2076.
All reactions