(name: string)
| 299 | }); |
| 300 | |
| 301 | function addSubmodule(name: string): string { |
| 302 | execFileSync( |
| 303 | 'git', |
| 304 | ['-c', 'protocol.file.allow=always', 'submodule', 'add', '-q', subSource, name], |
| 305 | { cwd: parent, stdio: ['ignore', 'ignore', 'ignore'] }, |
| 306 | ); |
| 307 | git(parent, 'commit', '-q', '-m', 'add submodule'); |
| 308 | return path.join(parent, name); |
| 309 | } |
| 310 | |
| 311 | function addBareGitlink(name: string): string { |
| 312 | const dir = path.join(parent, name); |
no test coverage detected