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

Method git

atomic-cli/tests/it/agent_git_commit_absorb_test.rs:98–106  ·  view source on GitHub ↗

Run the real `git` binary, so the shim's hook dispatchers fire.

(&self, args: &[&str])

Source from the content-addressed store, hash-verified

96
97 /// Run the real `git` binary, so the shim's hook dispatchers fire.
98 fn git(&self, args: &[&str]) -> String {
99 let out = self
100 .with_env(Command::new("git"))
101 .args(args)
102 .output()
103 .unwrap();
104 assert!(out.status.success(), "git {args:?}: {}", combined(&out));
105 String::from_utf8(out.stdout).unwrap().trim().to_string()
106 }
107
108 /// Run one agent hook, optionally with extra environment (failpoints).
109 fn hook_output_with(&self, verb: &str, env: &[(&str, &str)]) -> Output {

Calls 3

with_envMethod · 0.80
unwrapMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected