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

Method TestPlainInit

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

Source from the content-addressed store, hash-verified

637}
638
639func (s *RepositorySuite) TestPlainInit(c *C) {
640 dir := c.MkDir()
641
642 r, err := PlainInit(dir, true)
643 c.Assert(err, IsNil)
644 c.Assert(r, NotNil)
645
646 cfg, err := r.Config()
647 c.Assert(err, IsNil)
648 c.Assert(cfg.Core.IsBare, Equals, true)
649}
650
651func (s *RepositorySuite) TestPlainInitWithOptions(c *C) {
652 dir := c.MkDir()

Callers

nothing calls this directly

Calls 2

PlainInitFunction · 0.85
ConfigMethod · 0.65

Tested by

no test coverage detected