aboutsummaryrefslogtreecommitdiffstats
path: root/references_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'references_test.go')
-rw-r--r--references_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/references_test.go b/references_test.go
index 112fe3a..f5a2fdc 100644
--- a/references_test.go
+++ b/references_test.go
@@ -4,8 +4,8 @@ import (
"bytes"
"fmt"
- "gopkg.in/src-d/go-git.v4/core"
"gopkg.in/src-d/go-git.v4/fixtures"
+ "gopkg.in/src-d/go-git.v4/plumbing"
. "gopkg.in/check.v1"
)
@@ -296,7 +296,7 @@ func (s *ReferencesSuite) TestRevList(c *C) {
repo, ok := s.Repositories[t.repo]
c.Assert(ok, Equals, true)
- commit, err := repo.Commit(core.NewHash(t.commit))
+ commit, err := repo.Commit(plumbing.NewHash(t.commit))
c.Assert(err, IsNil)
revs, err := commit.References(t.path)
@@ -305,7 +305,7 @@ func (s *ReferencesSuite) TestRevList(c *C) {
for i := range revs {
if revs[i].Hash.String() != t.revs[i] {
- commit, err := repo.Commit(core.NewHash(t.revs[i]))
+ commit, err := repo.Commit(plumbing.NewHash(t.revs[i]))
c.Assert(err, IsNil)
equiv, err := equivalent(t.path, revs[i], commit)
c.Assert(err, IsNil)
@@ -363,7 +363,7 @@ func (s *ReferencesSuite) commits(cc *C, repo string, hs ...string) []*Commit {
cc.Assert(ok, Equals, true)
result := make([]*Commit, 0, len(hs))
for _, h := range hs {
- c, err := r.Commit(core.NewHash(h))
+ c, err := r.Commit(plumbing.NewHash(h))
cc.Assert(err, IsNil)
result = append(result, c)
}