(submodulePath: string)
| 46 | } |
| 47 | |
| 48 | function removeSubmodule(submodulePath: string): void { |
| 49 | // Deinitialize the submodule |
| 50 | execSafe(`git submodule deinit -f ${submodulePath}`) |
| 51 | // Remove from .git/modules |
| 52 | const gitModulesPath = join(root, '.git', 'modules', submodulePath) |
| 53 | if (existsSync(gitModulesPath)) { |
| 54 | rmSync(gitModulesPath, { recursive: true }) |
| 55 | } |
| 56 | // Remove from working tree and .gitmodules |
| 57 | exec(`git rm -f ${submodulePath}`) |
| 58 | } |
| 59 | |
| 60 | interface Project { |
| 61 | name: string |
no test coverage detected