(c *C)
| 642 | } |
| 643 | |
| 644 | func (s *WorktreeSuite) TestCheckoutSubmodule(c *C) { |
| 645 | url := "https://github.com/git-fixtures/submodule.git" |
| 646 | r := s.NewRepositoryWithEmptyWorktree(fixtures.ByURL(url).One()) |
| 647 | |
| 648 | w, err := r.Worktree() |
| 649 | c.Assert(err, IsNil) |
| 650 | |
| 651 | err = w.Checkout(&CheckoutOptions{}) |
| 652 | c.Assert(err, IsNil) |
| 653 | |
| 654 | status, err := w.Status() |
| 655 | c.Assert(err, IsNil) |
| 656 | c.Assert(status.IsClean(), Equals, true) |
| 657 | } |
| 658 | |
| 659 | func (s *WorktreeSuite) TestCheckoutSubmoduleInitialized(c *C) { |
| 660 | url := "https://github.com/git-fixtures/submodule.git" |
nothing calls this directly
no test coverage detected