(c *C)
| 100 | } |
| 101 | |
| 102 | func (s *SubmoduleSuite) TestUpdateWithoutInit(c *C) { |
| 103 | sm, err := s.Worktree.Submodule("basic") |
| 104 | c.Assert(err, IsNil) |
| 105 | |
| 106 | err = sm.Update(&SubmoduleUpdateOptions{}) |
| 107 | c.Assert(err, Equals, ErrSubmoduleNotInitialized) |
| 108 | } |
| 109 | |
| 110 | func (s *SubmoduleSuite) TestUpdateWithNotFetch(c *C) { |
| 111 | sm, err := s.Worktree.Submodule("basic") |