MCPcopy
hub / github.com/go-git/go-git / initRepo

Function initRepo

tests/objectverify/main_test.go:313–319  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

311}
312
313func initRepo(t *testing.T) string {
314 t.Helper()
315 dir := t.TempDir()
316 out, err := exec.Command("git", "-C", dir, "init", "--quiet").CombinedOutput()
317 require.NoErrorf(t, err, "git init: %s", out)
318 return dir
319}
320
321func writeLooseObject(t *testing.T, repo, objType string, content []byte) plumbing.Hash {
322 t.Helper()

Callers 3

TestTagVerifyAlignmentFunction · 0.85

Calls 1

CommandMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…