(c *C)
| 900 | } |
| 901 | |
| 902 | func (s *WorktreeSuite) TestCheckoutCreateMissingBranch(c *C) { |
| 903 | w := &Worktree{ |
| 904 | r: s.Repository, |
| 905 | Filesystem: memfs.New(), |
| 906 | } |
| 907 | |
| 908 | err := w.Checkout(&CheckoutOptions{ |
| 909 | Create: true, |
| 910 | }) |
| 911 | |
| 912 | c.Assert(err, Equals, ErrCreateRequiresBranch) |
| 913 | } |
| 914 | |
| 915 | func (s *WorktreeSuite) TestCheckoutCreateInvalidBranch(c *C) { |
| 916 | w := &Worktree{ |