* Get the git commit SHA from a git repository directory * Returns undefined if not a git repo or if operation fails
(dirPath: string)
| 1010 | * Returns undefined if not a git repo or if operation fails |
| 1011 | */ |
| 1012 | async function getGitCommitSha(dirPath: string): Promise<string | undefined> { |
| 1013 | const sha = await getHeadForDir(dirPath) |
| 1014 | return sha ?? undefined |
| 1015 | } |
| 1016 | |
| 1017 | /** |
| 1018 | * Try to read version from plugin manifest |
no test coverage detected