* Install a plugin from a git URL
( gitUrl: string, targetPath: string, ref?: string, sha?: string, )
| 643 | * Install a plugin from a git URL |
| 644 | */ |
| 645 | async 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 |
no test coverage detected