(c *C)
| 813 | } |
| 814 | |
| 815 | func (s *WorktreeSuite) TestCheckoutCreateMissingBranch(c *C) { |
| 816 | w := &Worktree{ |
| 817 | r: s.Repository, |
| 818 | Filesystem: memfs.New(), |
| 819 | } |
| 820 | |
| 821 | err := w.Checkout(&CheckoutOptions{ |
| 822 | Create: true, |
| 823 | }) |
| 824 | |
| 825 | c.Assert(err, Equals, ErrCreateRequiresBranch) |
| 826 | } |
| 827 | |
| 828 | func (s *WorktreeSuite) TestCheckoutCreateInvalidBranch(c *C) { |
| 829 | w := &Worktree{ |