| 119 | } |
| 120 | |
| 121 | func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) { |
| 122 | if testing.Short() { |
| 123 | c.Skip("skipping test in short mode.") |
| 124 | } |
| 125 | |
| 126 | sm, err := s.Worktree.Submodule("itself") |
| 127 | c.Assert(err, IsNil) |
| 128 | |
| 129 | err = sm.Update(&SubmoduleUpdateOptions{ |
| 130 | Init: true, |
| 131 | RecurseSubmodules: 2, |
| 132 | }) |
| 133 | |
| 134 | c.Assert(err, IsNil) |
| 135 | |
| 136 | fs := s.Worktree.Filesystem |
| 137 | _, err = fs.Stat(fs.Join("itself", "basic", "LICENSE")) |
| 138 | c.Assert(err, IsNil) |
| 139 | } |
| 140 | |
| 141 | func (s *SubmoduleSuite) TestUpdateWithInitAndUpdate(c *C) { |
| 142 | if testing.Short() { |