From 86c0c010927fe59ae54563a9a86db200a18f4c2e Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Sun, 24 May 2020 11:23:04 +0200 Subject: Repository.ConfigScoped and Repository.Commit with empty author support --- options_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'options_test.go') diff --git a/options_test.go b/options_test.go index b9e9096..aa36dab 100644 --- a/options_test.go +++ b/options_test.go @@ -1,8 +1,8 @@ package git import ( - . "gopkg.in/check.v1" "github.com/go-git/go-git/v5/plumbing/object" + . "gopkg.in/check.v1" ) type OptionsSuite struct { @@ -18,12 +18,6 @@ func (s *OptionsSuite) TestCommitOptionsParentsFromHEAD(c *C) { c.Assert(o.Parents, HasLen, 1) } -func (s *OptionsSuite) TestCommitOptionsMissingAuthor(c *C) { - o := CommitOptions{} - err := o.Validate(s.Repository) - c.Assert(err, Equals, ErrMissingAuthor) -} - func (s *OptionsSuite) TestCommitOptionsCommitter(c *C) { sig := &object.Signature{} -- cgit