(project_dir: &Path, config: GitConfig)
| 99 | } |
| 100 | |
| 101 | pub fn create(project_dir: &Path, config: GitConfig) -> Result<String> { |
| 102 | info!("fetching remote template, please wait..."); |
| 103 | let branch = git_clone_all(project_dir, config)?; |
| 104 | remove_history(project_dir, None)?; |
| 105 | Ok(branch) |
| 106 | } |
| 107 | |
| 108 | fn canonicalize_path(p: &Path) -> Result<PathBuf> { |
| 109 | let p = if p.to_str().unwrap().starts_with("~/") { |