(&self, args: &[&str])
| 128 | } |
| 129 | |
| 130 | fn git(&self, args: &[&str]) -> String { |
| 131 | let output = git(self.root(), args); |
| 132 | assert!( |
| 133 | output.status.success(), |
| 134 | "git {args:?} failed: {}", |
| 135 | String::from_utf8_lossy(&output.stderr) |
| 136 | ); |
| 137 | String::from_utf8(output.stdout) |
| 138 | .expect("utf8 git output") |
| 139 | .trim() |
| 140 | .to_string() |
| 141 | } |
| 142 | |
| 143 | fn tip(&self, reference: &str) -> Option<Oid> { |
| 144 | let repository = GitRepository::open(self.root()).expect("git repo"); |
no test coverage detected