MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / installFromGit

Function installFromGit

source code/utils/plugins/pluginLoader.ts:647–659  ·  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

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