MCPcopy Create free account
hub / github.com/Noumena-Network/code / getGitCommitSha

Function getGitCommitSha

src/utils/plugins/installedPluginsManager.ts:1012–1015  ·  view source on GitHub ↗

* Get the git commit SHA from a git repository directory * Returns undefined if not a git repo or if operation fails

(dirPath: string)

Source from the content-addressed store, hash-verified

1010 * Returns undefined if not a git repo or if operation fails
1011 */
1012async 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

Callers 1

Calls 1

getHeadForDirFunction · 0.85

Tested by

no test coverage detected