pub fn git_init(dir: &Path) -> Result<(), Box<dyn Error>> {
    let output = Command::new("git")
        .current_dir(dir)
        .args(&["init", "--quiet"])
        .output()?;
    util::check_command_output(&output, "initializing git repository");
    Ok(())
}
/// Initialize a new git repo.
Initialize a new git repo.
Initialize a new git repo .
pub fn git_init(dir: &Path) -> Result<(), Box<dyn Error>> {
    let output = Command::new("git")
        .current_dir(dir)
        .args(&["init", "--quiet"])
        .output()?;
    util::check_command_output(&output, "initializing git repository");
    Ok(())
}
pub fn git_init ( dir : & Path ) -> Result < ( ) , Box < dyn Error > > { let output = Command :: new ( " " ) . current_dir ( dir ) . args ( & [ " " , " " ] ) . output ( ) ? ; util :: check_command_output ( & output , " " ) ; Ok ( ( ) ) }
Initialize a new git repo.
Initialize a new git repo .
dir
&Path
dir
&Path