aboutsummaryrefslogtreecommitdiffstats
path: root/repository_test.go
diff options
context:
space:
mode:
authorChris Marchesi <chrism@vancluevertech.com>2018-09-07 10:11:44 -0700
committerChris Marchesi <chrism@vancluevertech.com>2018-09-07 10:11:44 -0700
commitf8adfff71d844df7efa1367b7958e8f26411aaf9 (patch)
treeef9ed83a413061d39bf9b9e9fb8c5e6224257c0c /repository_test.go
parent9cc654ccb69324c7ab9cd67d8a92f9641b3f77b4 (diff)
downloadgo-git-f8adfff71d844df7efa1367b7958e8f26411aaf9.tar.gz
git: s/TagObjectOptions/CreateTagOptions/
Just renaming the TagObjectOptions type to CreateTagOptions so that it's consistent with the other option types. Signed-off-by: Chris Marchesi <chrism@vancluevertech.com>
Diffstat (limited to 'repository_test.go')
-rw-r--r--repository_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/repository_test.go b/repository_test.go
index 88ad715..89911c0 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -1331,7 +1331,7 @@ func (s *RepositorySuite) TestCreateTagAnnotated(c *C) {
expectedHash := h.Hash()
- ref, err := r.CreateTag("foobar", expectedHash, &TagObjectOptions{
+ ref, err := r.CreateTag("foobar", expectedHash, &CreateTagOptions{
Tagger: defaultSignature(),
Message: "foo bar baz qux",
})
@@ -1363,13 +1363,13 @@ func (s *RepositorySuite) TestCreateTagAnnotatedBadOpts(c *C) {
expectedHash := h.Hash()
- ref, err := r.CreateTag("foobar", expectedHash, &TagObjectOptions{
+ 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, &TagObjectOptions{
+ ref, err = r.CreateTag("foobar", expectedHash, &CreateTagOptions{
Tagger: defaultSignature(),
})
c.Assert(ref, IsNil)
@@ -1385,7 +1385,7 @@ func (s *RepositorySuite) TestCreateTagAnnotatedBadHash(c *C) {
err := r.clone(context.Background(), &CloneOptions{URL: url})
c.Assert(err, IsNil)
- ref, err := r.CreateTag("foobar", plumbing.ZeroHash, &TagObjectOptions{
+ ref, err := r.CreateTag("foobar", plumbing.ZeroHash, &CreateTagOptions{
Tagger: defaultSignature(),
Message: "foo bar baz qux",
})
@@ -1406,7 +1406,7 @@ func (s *RepositorySuite) TestCreateTagSigned(c *C) {
c.Assert(err, IsNil)
key := commitSignKey(c, true)
- _, err = r.CreateTag("foobar", h.Hash(), &TagObjectOptions{
+ _, err = r.CreateTag("foobar", h.Hash(), &CreateTagOptions{
Tagger: defaultSignature(),
Message: "foo bar baz qux",
SignKey: key,
@@ -1447,7 +1447,7 @@ func (s *RepositorySuite) TestCreateTagSignedBadKey(c *C) {
c.Assert(err, IsNil)
key := commitSignKey(c, false)
- _, err = r.CreateTag("foobar", h.Hash(), &TagObjectOptions{
+ _, err = r.CreateTag("foobar", h.Hash(), &CreateTagOptions{
Tagger: defaultSignature(),
Message: "foo bar baz qux",
SignKey: key,
@@ -1468,7 +1468,7 @@ func (s *RepositorySuite) TestCreateTagCanonicalize(c *C) {
c.Assert(err, IsNil)
key := commitSignKey(c, true)
- _, err = r.CreateTag("foobar", h.Hash(), &TagObjectOptions{
+ _, err = r.CreateTag("foobar", h.Hash(), &CreateTagOptions{
Tagger: defaultSignature(),
Message: "\n\nfoo bar baz qux\n\nsome message here",
SignKey: key,
@@ -1637,7 +1637,7 @@ func (s *RepositorySuite) TestDeleteTagAnnotatedUnpacked(c *C) {
expectedHash := h.Hash()
- ref, err := r.CreateTag("foobar", expectedHash, &TagObjectOptions{
+ ref, err := r.CreateTag("foobar", expectedHash, &CreateTagOptions{
Tagger: defaultSignature(),
Message: "foo bar baz qux",
})