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

Method TestWorktreeBare

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

Source from the content-addressed store, hash-verified

3121}
3122
3123func (s *RepositorySuite) TestWorktreeBare(c *C) {
3124 r, _ := Init(memory.NewStorage(), nil)
3125 w, err := r.Worktree()
3126 c.Assert(err, Equals, ErrIsBareRepository)
3127 c.Assert(w, IsNil)
3128}
3129
3130func (s *RepositorySuite) TestResolveRevision(c *C) {
3131 f := fixtures.ByURL("https://github.com/git-fixtures/basic.git").One()

Callers

nothing calls this directly

Calls 3

NewStorageFunction · 0.92
InitFunction · 0.85
WorktreeMethod · 0.80

Tested by

no test coverage detected