()
| 21 | }; |
| 22 | |
| 23 | const createTempRepo = async () => { |
| 24 | const repoPath = await mkdtemp(join(tmpdir(), "sourcebot-git-test-")); |
| 25 | |
| 26 | runGit(repoPath, ["init", "--initial-branch=main"]); |
| 27 | runGit(repoPath, ["config", "user.name", "Sourcebot Test"]); |
| 28 | runGit(repoPath, ["config", "user.email", "sourcebot@example.com"]); |
| 29 | runGit(repoPath, ["config", "tag.sort", "refname"]); |
| 30 | runGit(repoPath, ["config", "branch.sort", "refname"]); |
| 31 | |
| 32 | return repoPath; |
| 33 | }; |
| 34 | |
| 35 | const commitFile = async ({ |
| 36 | repoPath, |