aboutsummaryrefslogtreecommitdiffstats
path: root/repository_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-06-05 07:02:15 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2020-06-05 07:02:15 +0200
commit531a81eae684d8cae617d3d9a26923a66eb25d40 (patch)
treebad8ba6004f59497b00dd4edf098766a375f7beb /repository_test.go
parent8019144b6534ff58ad234a355e5b143f1c99b45e (diff)
downloadgo-git-531a81eae684d8cae617d3d9a26923a66eb25d40.tar.gz
CreateTagOptions.Validate: load Tagger from config
Diffstat (limited to 'repository_test.go')
-rw-r--r--repository_test.go10
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)
}