radicle: Accept `<transport>::rad://` URL convention
Extend the local transport URL parser to accept the standard
Git <transport>::<address> format (see gitremote-helpers docs [1])
for remote helper composition.
This allows radicle repositories to have other remote helpers operate on the git repo, before content is handed over to git-remote-rad, as per the spec.
Note: Url::from_str accepts the prefixed form but Display
always outputs canonical rad:// — the transport prefix is not
part of the Radicle URL identity, so the round-trip is lossy by
design.
[1] - https://git-scm.com/docs/gitremote-helpers#_invocation
Signed-off-by: Yorgos Saslis yorgos.work@proton.me
Some checks failed
— 0 passed, 1 failed
View logs ↗
1 file changed
+27
-1
22b2871f
→
6c4656b4
modified crates/radicle/src/storage/git/transport/local/url.rs
@@ -18,7 +18,7 @@ pub enum UrlError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -79,6 +79,11 @@ impl FromStr for Url {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -123,6 +128,27 @@ mod test {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|