(temp: &TempDir)
| 284 | } |
| 285 | |
| 286 | fn make_bare_remote(temp: &TempDir) -> std::path::PathBuf { |
| 287 | let remote_dir = temp.path().join("remote.git"); |
| 288 | fs::create_dir_all(&remote_dir).expect("remote dir"); |
| 289 | let git_init = Command::new("git") |
| 290 | .args([ |
| 291 | "init", |
| 292 | "--bare", |
| 293 | "--initial-branch=master", |
| 294 | remote_dir.to_str().unwrap(), |
| 295 | ]) |
| 296 | .output() |
| 297 | .expect("init bare"); |
| 298 | assert!(git_init.status.success(), "bare init failed"); |
| 299 | remote_dir |
| 300 | } |
| 301 | |
| 302 | #[test] |
| 303 | fn fresh_clone_resurrects_the_exact_closure_through_the_published_binding() { |
no test coverage detected