(c *C)
| 1444 | } |
| 1445 | |
| 1446 | func (s *WorktreeSuite) TestStatusAfterCheckout(c *C) { |
| 1447 | fs := memfs.New() |
| 1448 | w := &Worktree{ |
| 1449 | r: s.Repository, |
| 1450 | Filesystem: fs, |
| 1451 | } |
| 1452 | |
| 1453 | err := w.Checkout(&CheckoutOptions{Force: true}) |
| 1454 | c.Assert(err, IsNil) |
| 1455 | |
| 1456 | status, err := w.Status() |
| 1457 | c.Assert(err, IsNil) |
| 1458 | c.Assert(status.IsClean(), Equals, true) |
| 1459 | } |
| 1460 | |
| 1461 | func (s *WorktreeSuite) TestStatusAfterSparseCheckout(c *C) { |
| 1462 | fs := memfs.New() |