pub fn gitclone(package_name: String, url: String) -> Result<(), String> {
    let package_dir = PathManager::package_dir(package_name);
    match Platform::command(format!("cd {}; git clone {}", package_dir, url)) {
        Ok(_) => Ok(()),
        Err(_) => Err(format!("Could not clone git repo '{}'", url))
    }
}
/// Clone a git repository into the installation directory for the package.
Clone a git repository into the installation directory for the package.
Clone a git repository into the installation directory for the package .
pub fn gitclone(package_name: String, url: String) -> Result<(), String> {
    let package_dir = PathManager::package_dir(package_name);
    match Platform::command(format!("cd {}; git clone {}", package_dir, url)) {
        Ok(_) => Ok(()),
        Err(_) => Err(format!("Could not clone git repo '{}'", url))
    }
}
pub fn gitclone ( package_name : String , url : String ) -> Result < ( ) , String > { let package_dir = PathManager :: package_dir ( package_name ) ; match Platform :: command ( format ! ( " " package_dir url ) ) { Ok ( _ ) => Ok ( ( ) ) , Err ( _ ) => Err ( format ! ( " " url ) ) } }
Clone a git repository into the installation directory for the package.
Clone a git repository into the installation directory for the package .
package_name
String
url
String
package_name
String
url
String