(path: string)
| 27 | } |
| 28 | |
| 29 | function submoduleExists(path: string): boolean { |
| 30 | const gitmodules = join(root, '.gitmodules') |
| 31 | if (!existsSync(gitmodules)) |
| 32 | return false |
| 33 | const content = readFileSync(gitmodules, 'utf-8') |
| 34 | return content.includes(`path = ${path}`) |
| 35 | } |
| 36 | |
| 37 | const RE_SUBMODULE_PATH = /path\s*=\s*(.+)/g |
| 38 |