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

Method TestUpdateWithNotFetch

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

SubmoduleMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected