(t *testing.T, path string)
| 529 | "commit", "-m", "commit staged readme change", |
| 530 | ) |
| 531 | |
| 532 | waitForHeadAndStatus(t, repo.mountPath, preCommitHEAD, map[string]string{"README.md": " M"}) |
| 533 | if got := readFileStr(t, readmePath); got != worktree { |
| 534 | t.Fatalf("README.md worktree content = %q", got) |
| 535 | } |
| 536 | if headReadme := gitCmd(t, repo.mountPath, "show", "HEAD:README.md"); headReadme != staged { |
| 537 | t.Fatalf("HEAD README.md = %q, want staged content", headReadme) |
| 538 | } |
| 539 | } |
no outgoing calls
no test coverage detected