use super::{
super::{context::*, errors::*, url::*},
errors::*,
git_url::*,
};
use relative_path::*;
impl UrlContext {
pub fn git_url(
self: &UrlContextRef,
conformed_repository_url: UrlRef,
path: RelativePathBuf,
) -> Result<UrlRef, UrlError> {
let repository_gix_url =
gix::Url::from_bytes(conformed_repository_url.to_string().as_bytes().into()).map_err(GitError::from)?;
Ok(GitUrl::new(self, conformed_repository_url.into(), repository_gix_url, path).into())
}
}