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

Function git_ok

atomic-cli/src/commands/view/switch.rs:359–372  ·  view source on GitHub ↗
(root: &std::path::Path, args: &[&str])

Source from the content-addressed store, hash-verified

357 }
358
359 fn git_ok(root: &std::path::Path, args: &[&str]) -> String {
360 let output = ProcessCommand::new("git")
361 .arg("-C")
362 .arg(root)
363 .args(args)
364 .output()
365 .unwrap();
366 assert!(
367 output.status.success(),
368 "git {args:?} failed: {}",
369 String::from_utf8_lossy(&output.stderr)
370 );
371 String::from_utf8_lossy(&output.stdout).trim().to_string()
372 }
373
374 // -------------------------------------------------------------------------
375 // Shim enrollment gating (RFC §2 / CB-13C)

Calls 2

unwrapMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected