MCPcopy Index your code
hub / github.com/codeaashu/claude-code / installFromGit

Function installFromGit

src/utils/plugins/pluginLoader.ts:645–657  ·  view source on GitHub ↗

* Install a plugin from a git URL

(
  gitUrl: string,
  targetPath: string,
  ref?: string,
  sha?: string,
)

Source from the content-addressed store, hash-verified

643 * Install a plugin from a git URL
644 */
645async function installFromGit(
646 gitUrl: string,
647 targetPath: string,
648 ref?: string,
649 sha?: string,
650): Promise<void> {
651 const safeUrl = validateGitUrl(gitUrl)
652 await gitClone(safeUrl, targetPath, ref, sha)
653 const refMessage = ref ? ` (ref: ${ref})` : ''
654 logForDebugging(
655 `Cloned repository from ${safeUrl}${refMessage} to ${targetPath}`,
656 )
657}
658
659/**
660 * Install a plugin from GitHub

Callers 2

installFromGitHubFunction · 0.85
cachePluginFunction · 0.85

Calls 3

validateGitUrlFunction · 0.85
logForDebuggingFunction · 0.85
gitCloneFunction · 0.70

Tested by

no test coverage detected