(c *C)
| 106 | } |
| 107 | |
| 108 | func (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 | |
| 121 | func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) { |
| 122 | if testing.Short() { |