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