()
| 786 | writeFileSync(join(cwd, path), value); |
| 787 | }; |
| 788 | const commit = () => { |
| 789 | git("add", "--all"); |
| 790 | git("commit", "-m", "fixture"); |
| 791 | return git("rev-parse", "HEAD"); |
| 792 | }; |
| 793 | write("README.md", "initial\n"); |
| 794 | const initial = commit(); |
| 795 | return { cwd, git, write, commit, initial }; |