| 31 | |
| 32 | impl Fixture { |
| 33 | fn colocated() -> Self { |
| 34 | let fixture = Self::empty(); |
| 35 | fixture.git_ok(&["init", "-q", "-b", "main"]); |
| 36 | fixture.git_ok(&["config", "user.name", "CB-11A Tests"]); |
| 37 | fixture.git_ok(&["config", "user.email", "cb11a@example.com"]); |
| 38 | fixture.git_ok(&["config", "core.autocrlf", "false"]); |
| 39 | fixture.git_ok(&["config", "commit.gpgsign", "false"]); |
| 40 | fs::write(fixture.root().join("tracked.txt"), b"l1\nl2\nl3\n") |
| 41 | .expect("write initial tracked file"); |
| 42 | fixture.git_ok(&["add", "tracked.txt"]); |
| 43 | fixture.git_ok(&["commit", "--no-gpg-sign", "-q", "-m", "base"]); |
| 44 | fixture.atomic_ok(&["git", "import", "--no-vault"]); |
| 45 | fixture.atomic_ok(&["git", "shim", "reconcile"]); |
| 46 | assert!( |
| 47 | fixture |
| 48 | .root() |
| 49 | .join(".atomic/bridge/workspace.json") |
| 50 | .is_file(), |
| 51 | "Git reconciliation must establish a valid shim checkpoint" |
| 52 | ); |
| 53 | fixture |
| 54 | } |
| 55 | |
| 56 | fn empty() -> Self { |
| 57 | Self { |