diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-08 23:46:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 23:46:38 +0100 |
commit | ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d (patch) | |
tree | 223f36f336ba3414b1e45cac8af6c4744a5d7ef6 /references_test.go | |
parent | e523701393598f4fa241dd407af9ff8925507a1a (diff) | |
download | go-git-ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d.tar.gz |
new plumbing package (#118)
* plumbing: now core was renamed to core, and formats and clients moved inside
Diffstat (limited to 'references_test.go')
-rw-r--r-- | references_test.go | 8 |
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) } |