MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / git_clone_full

Function git_clone_full

libatomic/examples/agent_sandbox_bench.rs:531–546  ·  view source on GitHub ↗
(bare: &Path, sandbox: &Path)

Source from the content-addressed store, hash-verified

529
530#[cfg(unix)]
531fn 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

Callers 1

runFunction · 0.85

Calls 4

parentMethod · 0.80
displayMethod · 0.80
gitFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected