(c *C)
| 657 | } |
| 658 | |
| 659 | func (s *WorktreeSuite) TestCheckoutSubmoduleInitialized(c *C) { |
| 660 | url := "https://github.com/git-fixtures/submodule.git" |
| 661 | r := s.NewRepository(fixtures.ByURL(url).One()) |
| 662 | |
| 663 | w, err := r.Worktree() |
| 664 | c.Assert(err, IsNil) |
| 665 | |
| 666 | sub, err := w.Submodules() |
| 667 | c.Assert(err, IsNil) |
| 668 | |
| 669 | err = sub.Update(&SubmoduleUpdateOptions{Init: true}) |
| 670 | c.Assert(err, IsNil) |
| 671 | |
| 672 | status, err := w.Status() |
| 673 | c.Assert(err, IsNil) |
| 674 | c.Assert(status.IsClean(), Equals, true) |
| 675 | } |
| 676 | |
| 677 | func (s *WorktreeSuite) TestCheckoutRelativePathSubmoduleInitialized(c *C) { |
| 678 | url := "https://github.com/git-fixtures/submodule.git" |
nothing calls this directly
no test coverage detected