MCPcopy
hub / github.com/desktop/desktop / createEmptyBareRepository

Function createEmptyBareRepository

app/test/unit/git/clone-test.ts:13–20  ·  view source on GitHub ↗
(
  t: import('node:test').TestContext
)

Source from the content-addressed store, hash-verified

11import { git } from '../../../src/lib/git'
12
13async function createEmptyBareRepository(
14 t: import('node:test').TestContext
15): Promise<string> {
16 const bareParentPath = await createTempDirectory(t)
17 const barePath = path.join(bareParentPath, 'remote.git')
18 await git(['init', '--bare', barePath], bareParentPath, 'initBareRepository')
19 return barePath
20}
21
22describe('git/clone', () => {
23 it('clones a local repository', async t => {

Callers 1

clone-test.tsFile · 0.85

Calls 2

createTempDirectoryFunction · 0.90
gitFunction · 0.90

Tested by

no test coverage detected