diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-08-02 13:13:46 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-08-02 13:13:46 +0200 |
commit | ab655650034b2acf36ce0237acaaf28b5d2572c0 (patch) | |
tree | c6d277c2650712726445c6cb15c47ffa63676263 /repository_test.go | |
parent | 171b3a73e7ab7015f9eb8e98965e36dfb8ea9599 (diff) | |
download | go-git-ab655650034b2acf36ce0237acaaf28b5d2572c0.tar.gz |
*: use the new API for ReferenceName.Is* methods
Diffstat (limited to 'repository_test.go')
-rw-r--r-- | repository_test.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/repository_test.go b/repository_test.go index 558149b..8855b18 100644 --- a/repository_test.go +++ b/repository_test.go @@ -623,7 +623,6 @@ func (s *RepositorySuite) TestCloneDetachedHEAD(c *C) { func (s *RepositorySuite) TestPush(c *C) { url := c.MkDir() - fmt.Println(url) server, err := PlainInit(url, true) c.Assert(err, IsNil) @@ -651,7 +650,6 @@ func (s *RepositorySuite) TestPush(c *C) { func (s *RepositorySuite) TestPushContext(c *C) { url := c.MkDir() - fmt.Println(url) _, err := PlainInit(url, true) c.Assert(err, IsNil) @@ -923,7 +921,7 @@ func (s *RepositorySuite) TestTags(c *C) { tags.ForEach(func(tag *plumbing.Reference) error { count++ c.Assert(tag.Hash().IsZero(), Equals, false) - c.Assert(tag.IsTag(), Equals, true) + c.Assert(tag.Name().IsTag(), Equals, true) return nil }) @@ -944,7 +942,7 @@ func (s *RepositorySuite) TestBranches(c *C) { branches.ForEach(func(branch *plumbing.Reference) error { count++ c.Assert(branch.Hash().IsZero(), Equals, false) - c.Assert(branch.IsBranch(), Equals, true) + c.Assert(branch.Name().IsBranch(), Equals, true) return nil }) @@ -968,7 +966,7 @@ func (s *RepositorySuite) TestNotes(c *C) { notes.ForEach(func(note *plumbing.Reference) error { count++ c.Assert(note.Hash().IsZero(), Equals, false) - c.Assert(note.IsNote(), Equals, true) + c.Assert(note.Name().IsNote(), Equals, true) return nil }) |