(c *C)
| 587 | } |
| 588 | |
| 589 | func (s *WorktreeSuite) TestCheckoutSubmodule(c *C) { |
| 590 | url := "https://github.com/git-fixtures/submodule.git" |
| 591 | r := s.NewRepositoryWithEmptyWorktree(fixtures.ByURL(url).One()) |
| 592 | |
| 593 | w, err := r.Worktree() |
| 594 | c.Assert(err, IsNil) |
| 595 | |
| 596 | err = w.Checkout(&CheckoutOptions{}) |
| 597 | c.Assert(err, IsNil) |
| 598 | |
| 599 | status, err := w.Status() |
| 600 | c.Assert(err, IsNil) |
| 601 | c.Assert(status.IsClean(), Equals, true) |
| 602 | } |
| 603 | |
| 604 | func (s *WorktreeSuite) TestCheckoutSubmoduleInitialized(c *C) { |
| 605 | url := "https://github.com/git-fixtures/submodule.git" |
nothing calls this directly
no test coverage detected