(c *C)
| 219 | } |
| 220 | |
| 221 | func (s *WorktreeSuite) TestPullProgressWithRecursion(c *C) { |
| 222 | if testing.Short() { |
| 223 | c.Skip("skipping test in short mode.") |
| 224 | } |
| 225 | |
| 226 | path := fixtures.ByTag("submodule").One().Worktree().Root() |
| 227 | |
| 228 | dir, clean := s.TemporalDir() |
| 229 | defer clean() |
| 230 | |
| 231 | r, _ := PlainInit(dir, false) |
| 232 | r.CreateRemote(&config.RemoteConfig{ |
| 233 | Name: DefaultRemoteName, |
| 234 | URLs: []string{path}, |
| 235 | }) |
| 236 | |
| 237 | w, err := r.Worktree() |
| 238 | c.Assert(err, IsNil) |
| 239 | |
| 240 | err = w.Pull(&PullOptions{ |
| 241 | RecurseSubmodules: DefaultSubmoduleRecursionDepth, |
| 242 | }) |
| 243 | c.Assert(err, IsNil) |
| 244 | |
| 245 | cfg, err := r.Config() |
| 246 | c.Assert(err, IsNil) |
| 247 | c.Assert(cfg.Submodules, HasLen, 2) |
| 248 | } |
| 249 | |
| 250 | func (s *RepositorySuite) TestPullAdd(c *C) { |
| 251 | path := fixtures.Basic().ByTag("worktree").One().Worktree().Root() |
nothing calls this directly
no test coverage detected