MCPcopy Create free account
hub / github.com/go-git/go-git / TestUpdateWithNotFetch

Method TestUpdateWithNotFetch

submodule_test.go:110–121  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

108}
109
110func (s *SubmoduleSuite) TestUpdateWithNotFetch(c *C) {
111 sm, err := s.Worktree.Submodule("basic")
112 c.Assert(err, IsNil)
113
114 err = sm.Update(&SubmoduleUpdateOptions{
115 Init: true,
116 NoFetch: true,
117 })
118
119 // Since we are not fetching, the object is not there
120 c.Assert(err, Equals, plumbing.ErrObjectNotFound)
121}
122
123func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) {
124 if testing.Short() {

Callers

nothing calls this directly

Calls 2

SubmoduleMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected