* Creates a bare clone of a repository to use as an upstream remote. * Bare repos accept pushes to any branch.
(
t: import('node:test').TestContext,
source: Repository
)
| 15 | * Bare repos accept pushes to any branch. |
| 16 | */ |
| 17 | async function createBareUpstream( |
| 18 | t: import('node:test').TestContext, |
| 19 | source: Repository |
| 20 | ): Promise<string> { |
| 21 | const barePath = await createTempDirectory(t) |
| 22 | await exec(['clone', '--bare', source.path, barePath], source.path) |
| 23 | return barePath |
| 24 | } |
| 25 | |
| 26 | describe('git/push', () => { |
| 27 | it('pushes commits to a local remote', async t => { |
no test coverage detected