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

Method TestInitWithInvalidDefaultBranch

repository_test.go:78–83  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

76}
77
78func (s *RepositorySuite) TestInitWithInvalidDefaultBranch(c *C) {
79 _, err := InitWithOptions(memory.NewStorage(), memfs.New(), InitOptions{
80 DefaultBranch: "foo",
81 })
82 c.Assert(err, NotNil)
83}
84
85func createCommit(c *C, r *Repository) plumbing.Hash {
86 // Create a commit so there is a HEAD to check

Callers

nothing calls this directly

Calls 2

NewStorageFunction · 0.92
InitWithOptionsFunction · 0.85

Tested by

no test coverage detected