( t: TestContext, upstream: Repository )
| 264 | * local "upstream" repository. |
| 265 | */ |
| 266 | export async function setupLocalForkOfRepository( |
| 267 | t: TestContext, |
| 268 | upstream: Repository |
| 269 | ): Promise<Repository> { |
| 270 | const path = await createTempDirectory(t) |
| 271 | await git(['clone', '--local', `${upstream.path}`, path], path, 'clone') |
| 272 | return new Repository(path, -1, null, false) |
| 273 | } |
| 274 | |
| 275 | /** |
| 276 | * Setup a repository with an uninitialized submodule in a branch |
no test coverage detected