diff options
Diffstat (limited to 'repository_test.go')
-rw-r--r-- | repository_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/repository_test.go b/repository_test.go index 6ad0d1e..ce53ead 100644 --- a/repository_test.go +++ b/repository_test.go @@ -209,7 +209,11 @@ func (s *RepositorySuite) TestCommit(c *C) { c.Assert(commit.Hash, Equals, commit.ID()) c.Assert(commit.Hash, Equals, hash) c.Assert(commit.Type(), Equals, core.CommitObject) - c.Assert(commit.Tree().Hash.IsZero(), Equals, false) + + tree, err := commit.Tree() + c.Assert(err, IsNil) + c.Assert(tree.Hash.IsZero(), Equals, false) + c.Assert(commit.Author.Email, Equals, "daniel@lordran.local") } |