Run the real `git` binary, so the shim's hook dispatchers fire.
(&self, args: &[&str])
| 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 { |
no test coverage detected