diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-06-05 07:02:15 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2020-06-05 07:02:15 +0200 |
commit | 531a81eae684d8cae617d3d9a26923a66eb25d40 (patch) | |
tree | bad8ba6004f59497b00dd4edf098766a375f7beb /repository_test.go | |
parent | 8019144b6534ff58ad234a355e5b143f1c99b45e (diff) | |
download | go-git-531a81eae684d8cae617d3d9a26923a66eb25d40.tar.gz |
CreateTagOptions.Validate: load Tagger from config
Diffstat (limited to 'repository_test.go')
-rw-r--r-- | repository_test.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/repository_test.go b/repository_test.go index 37cd914..d1af7b6 100644 --- a/repository_test.go +++ b/repository_test.go @@ -2103,15 +2103,7 @@ func (s *RepositorySuite) TestCreateTagAnnotatedBadOpts(c *C) { expectedHash := h.Hash() - ref, err := r.CreateTag("foobar", expectedHash, &CreateTagOptions{ - Message: "foo bar baz qux", - }) - c.Assert(ref, IsNil) - c.Assert(err, Equals, ErrMissingTagger) - - ref, err = r.CreateTag("foobar", expectedHash, &CreateTagOptions{ - Tagger: defaultSignature(), - }) + ref, err := r.CreateTag("foobar", expectedHash, &CreateTagOptions{}) c.Assert(ref, IsNil) c.Assert(err, Equals, ErrMissingMessage) } |