(c *C)
| 2849 | } |
| 2850 | |
| 2851 | func (s *WorktreeSuite) TestAddAndCommitEmpty(c *C) { |
| 2852 | dir, clean := s.TemporalDir() |
| 2853 | defer clean() |
| 2854 | |
| 2855 | repo, err := PlainInit(dir, false) |
| 2856 | c.Assert(err, IsNil) |
| 2857 | |
| 2858 | w, err := repo.Worktree() |
| 2859 | c.Assert(err, IsNil) |
| 2860 | |
| 2861 | _, err = w.Add(".") |
| 2862 | c.Assert(err, IsNil) |
| 2863 | |
| 2864 | _, err = w.Commit("Test Add And Commit", &CommitOptions{Author: &object.Signature{ |
| 2865 | Name: "foo", |
| 2866 | Email: "foo@foo.foo", |
| 2867 | When: time.Now(), |
| 2868 | }}) |
| 2869 | c.Assert(err, Equals, ErrEmptyCommit) |
| 2870 | } |
| 2871 | |
| 2872 | func (s *WorktreeSuite) TestLinkedWorktree(c *C) { |
| 2873 | fs := fixtures.ByTag("linked-worktree").One().Worktree() |
nothing calls this directly
no test coverage detected