| 166 | } |
| 167 | |
| 168 | fn git(root: &Path, args: &[&str]) -> Output { |
| 169 | Command::new("git") |
| 170 | .args(args) |
| 171 | .current_dir(root) |
| 172 | .env("GIT_AUTHOR_NAME", "CB-10A Tests") |
| 173 | .env("GIT_AUTHOR_EMAIL", "cb10a@example.com") |
| 174 | .env("GIT_COMMITTER_NAME", "CB-10A Tests") |
| 175 | .env("GIT_COMMITTER_EMAIL", "cb10a@example.com") |
| 176 | .output() |
| 177 | .expect("run git") |
| 178 | } |
| 179 | |
| 180 | fn commit_file(repository: &GitRepository, path: &str, content: &[u8], message: &str) -> Oid { |
| 181 | let worktree = repository.workdir().expect("Git worktree"); |