(dir: &Path)
| 529 | } |
| 530 | |
| 531 | fn all_git_objects_on(dir: &Path) -> Vec<u8> { |
| 532 | let out = Command::new("git") |
| 533 | .args(["cat-file", "--batch-all-objects", "--batch"]) |
| 534 | .current_dir(dir) |
| 535 | .output() |
| 536 | .expect("git cat-file"); |
| 537 | assert!( |
| 538 | out.status.success(), |
| 539 | "cat-file failed: {}", |
| 540 | output_text(&out) |
| 541 | ); |
| 542 | out.stdout |
| 543 | } |
| 544 | |
| 545 | #[test] |
| 546 | fn namespace_rejection_is_an_explicit_diagnostic() { |