node: Use Url type

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-09-13 10:16:05 +02:00
parent f18afb793c
commit 45d6de80e8
5 changed files with 39 additions and 22 deletions
+8 -1
View File
@@ -454,7 +454,14 @@ where
self.storage
.repository(&proj)
.unwrap()
.fetch(&format!("git://{}", remote))
.fetch(&Url {
scheme: git_url::Scheme::Git,
host: Some(remote.ip().to_string()),
port: Some(remote.port()),
// TODO: Fix upstream crate so that it adds a `/` when needed.
path: format!("/{}", proj).into(),
..Url::default()
})
.unwrap();
}
}