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

Function installFromGit

src/utils/plugins/pluginLoader.ts:646–658  ·  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

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

Callers 2

installFromGitHubFunction · 0.85
cachePluginFunction · 0.85

Calls 3

validateGitUrlFunction · 0.85
gitCloneFunction · 0.70
logForDebuggingFunction · 0.50

Tested by

no test coverage detected