Run `git` with the Buzz credential helper and isolated config. Asserts the command succeeds; returns stdout.
(args: &[&str], cwd: &Path, owner_nsec: &str)
| 93 | /// Run `git` with the Buzz credential helper and isolated config. Asserts the |
| 94 | /// command succeeds; returns stdout. |
| 95 | fn 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 | |
| 107 | struct GitS3Probe { |
| 108 | bucket: Box<Bucket>, |
no test coverage detected