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

Function git_ok

atomic-cli/src/commands/git/import.rs:2229–2241  ·  view source on GitHub ↗
(root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

2227 }
2228
2229 fn git_ok(root: &Path, args: &[&str]) {
2230 let output = ProcessCommand::new("git")
2231 .arg("-C")
2232 .arg(root)
2233 .args(args)
2234 .output()
2235 .unwrap();
2236 assert!(
2237 output.status.success(),
2238 "git {args:?} failed: {}",
2239 String::from_utf8_lossy(&output.stderr)
2240 );
2241 }
2242
2243 fn init_git(root: &Path) {
2244 git_ok(root, &["init", "-q"]);

Calls 2

unwrapMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected