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

Function git_ok

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

Source from the content-addressed store, hash-verified

130}
131
132fn git_ok(root: &Path, args: &[&str]) -> String {
133 let output = git(root, args);
134 assert!(
135 output.status.success(),
136 "git {args:?} failed: {}",
137 String::from_utf8_lossy(&output.stderr)
138 );
139 String::from_utf8(output.stdout).expect("utf8 git output")
140}
141
142fn key_file(home: &Path) -> PathBuf {
143 let mut secret = [0u8; 32];

Callers 1

gitMethod · 0.70

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected