pub async fn clone_to_temp(
temp_dir: &Path,
url: &str,
branch: &str,
credential: Option<&CredentialKind>,
follow_redirects: bool,
mirror: bool,
) -> Result<PathBuf, CloneError>Expand description
git creates whatever part of temp_dir is missing.