()
| 22 | } |
| 23 | |
| 24 | async function readHead(): Promise<{ |
| 25 | author: { name: string; email: string }; |
| 26 | committer: { name: string; email: string }; |
| 27 | }> { |
| 28 | const oid = await git.resolveRef({ fs: memfs, dir: DIR, ref: "HEAD" }); |
| 29 | const { commit } = await git.readCommit({ fs: memfs, dir: DIR, oid }); |
| 30 | return commit; |
| 31 | } |
| 32 | |
| 33 | const isogit = git as unknown as IsomorphicGitCommitClient; |
| 34 |
no test coverage detected