Skip to main content

clone_to_temp

Function clone_to_temp 

Source
pub async fn clone_to_temp(
    repo_url: &str,
    repo_branch: &str,
    temp_dir: &str,
    credentials: Option<Credentials>,
    follow_redirects: bool,
    mirror: bool,
) -> (Option<String>, Option<String>)
Expand description

Clones a repo directly into temp_dir/{uuid} and returns (Some(path), None) on success or (None, Some(error)) on failure.