diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-05-24 11:23:04 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2020-05-24 11:23:04 +0200 |
commit | 86c0c010927fe59ae54563a9a86db200a18f4c2e (patch) | |
tree | f83e183db75f414163ab8422ac6e00c0f6eebf31 /options_test.go | |
parent | 26d02b3fec4434d663445d580497204e79284db0 (diff) | |
download | go-git-86c0c010927fe59ae54563a9a86db200a18f4c2e.tar.gz |
Repository.ConfigScoped and Repository.Commit with empty author support
Diffstat (limited to 'options_test.go')
-rw-r--r-- | options_test.go | 8 |
1 files changed, 1 insertions, 7 deletions
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{} |