(c *C)
| 108 | } |
| 109 | |
| 110 | func (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 | |
| 123 | func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) { |
| 124 | if testing.Short() { |