(&self, args: &[&str])
| 84 | } |
| 85 | |
| 86 | fn git(&self, args: &[&str]) { |
| 87 | let output = Command::new("git") |
| 88 | .args(["-c", "core.hooksPath=/dev/null"]) |
| 89 | .args(args) |
| 90 | .current_dir(self.repo.path()) |
| 91 | .env("HOME", self.home.path()) |
| 92 | .env("GIT_CONFIG_NOSYSTEM", "1") |
| 93 | .env("GIT_CONFIG_GLOBAL", "/dev/null") |
| 94 | .output() |
| 95 | .unwrap(); |
| 96 | assert!(output.status.success(), "git {args:?}: {output:?}"); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | struct MockServer { |
no test coverage detected