MCPcopy Create free account
hub / github.com/block/buzz / git

Function git

crates/buzz-test-client/tests/e2e_git.rs:95–105  ·  view source on GitHub ↗

Run `git` with the Buzz credential helper and isolated config. Asserts the command succeeds; returns stdout.

(args: &[&str], cwd: &Path, owner_nsec: &str)

Source from the content-addressed store, hash-verified

93/// Run `git` with the Buzz credential helper and isolated config. Asserts the
94/// command succeeds; returns stdout.
95fn git(args: &[&str], cwd: &Path, owner_nsec: &str) -> String {
96 let out = git_status(args, cwd, owner_nsec);
97 assert!(
98 out.status.success(),
99 "git {:?} failed:\nstdout: {}\nstderr: {}",
100 args,
101 String::from_utf8_lossy(&out.stdout),
102 String::from_utf8_lossy(&out.stderr)
103 );
104 String::from_utf8_lossy(&out.stdout).into_owned()
105}
106
107struct GitS3Probe {
108 bucket: Box<Bucket>,

Calls 1

git_statusFunction · 0.85

Tested by

no test coverage detected