(c *C)
| 602 | } |
| 603 | |
| 604 | func (s *WorktreeSuite) TestCheckoutSubmoduleInitialized(c *C) { |
| 605 | url := "https://github.com/git-fixtures/submodule.git" |
| 606 | r := s.NewRepository(fixtures.ByURL(url).One()) |
| 607 | |
| 608 | w, err := r.Worktree() |
| 609 | c.Assert(err, IsNil) |
| 610 | |
| 611 | sub, err := w.Submodules() |
| 612 | c.Assert(err, IsNil) |
| 613 | |
| 614 | err = sub.Update(&SubmoduleUpdateOptions{Init: true}) |
| 615 | c.Assert(err, IsNil) |
| 616 | |
| 617 | status, err := w.Status() |
| 618 | c.Assert(err, IsNil) |
| 619 | c.Assert(status.IsClean(), Equals, true) |
| 620 | } |
| 621 | |
| 622 | func (s *WorktreeSuite) TestCheckoutRelativePathSubmoduleInitialized(c *C) { |
| 623 | url := "https://github.com/git-fixtures/submodule.git" |
nothing calls this directly
no test coverage detected