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

Function git_ok

atomic-cli/tests/it/git_wip_cb0b_test.rs:26–36  ·  view source on GitHub ↗
(root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

24}
25
26fn git_ok(root: &Path, args: &[&str]) -> Vec<u8> {
27 let output = git(root, args);
28 assert!(
29 output.status.success(),
30 "git {:?} failed:\nstdout:\n{}\nstderr:\n{}",
31 args,
32 String::from_utf8_lossy(&output.stdout),
33 String::from_utf8_lossy(&output.stderr)
34 );
35 output.stdout
36}
37
38fn git_text(root: &Path, args: &[&str]) -> String {
39 String::from_utf8(git_ok(root, args))

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected