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

Function git_ok

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

Source from the content-addressed store, hash-verified

2166 }
2167
2168 fn git_ok(root: &Path, args: &[&str]) {
2169 let output = ProcessCommand::new("git")
2170 .arg("-C")
2171 .arg(root)
2172 .args(args)
2173 .output()
2174 .unwrap();
2175 assert!(
2176 output.status.success(),
2177 "git {args:?} failed: {}",
2178 String::from_utf8_lossy(&output.stderr)
2179 );
2180 }
2181
2182 fn init_git(root: &Path) {
2183 git_ok(root, &["init", "-q"]);

Calls 2

unwrapMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected