| 529 | |
| 530 | #[cfg(unix)] |
| 531 | fn git_clone_full(bare: &Path, sandbox: &Path) -> Result<BTreeMap<String, u128>> { |
| 532 | let mut phases = BTreeMap::new(); |
| 533 | let started = Instant::now(); |
| 534 | git( |
| 535 | sandbox.parent().unwrap_or(Path::new("/")), |
| 536 | &[ |
| 537 | "clone", |
| 538 | "-q", |
| 539 | &format!("file://{}", bare.display()), |
| 540 | &sandbox.display().to_string(), |
| 541 | ], |
| 542 | None, |
| 543 | )?; |
| 544 | phases.insert("clone".into(), started.elapsed().as_nanos()); |
| 545 | Ok(phases) |
| 546 | } |
| 547 | |
| 548 | // ————————————————————————————— verification ————————————————————————————— |
| 549 | |