aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/commitnode_test.go
diff options
context:
space:
mode:
authorFilip Navara <filip.navara@gmail.com>2019-04-26 10:11:07 +0200
committerFilip Navara <filip.navara@gmail.com>2019-04-26 10:11:46 +0200
commita47126b1ae5020dbdd268b304fef45a59d63d99b (patch)
treec04ca9865ee3dea17adf0be50c739ec27a72940f /plumbing/object/commitnode_test.go
parent14c17dc6881fccf851c8bdffab15774faa3bce8b (diff)
downloadgo-git-a47126b1ae5020dbdd268b304fef45a59d63d99b.tar.gz
pluming: object, adjust to new API names in format/commitgraph
Signed-off-by: Filip Navara <filip.navara@gmail.com>
Diffstat (limited to 'plumbing/object/commitnode_test.go')
-rw-r--r--plumbing/object/commitnode_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/object/commitnode_test.go b/plumbing/object/commitnode_test.go
index 3a70db3..a295b8b 100644
--- a/plumbing/object/commitnode_test.go
+++ b/plumbing/object/commitnode_test.go
@@ -4,7 +4,7 @@ import (
"path"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git-fixtures.v3"
+ fixtures "gopkg.in/src-d/go-git-fixtures.v3"
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/cache"
"gopkg.in/src-d/go-git.v4/plumbing/format/commitgraph"
@@ -131,7 +131,7 @@ func (s *CommitNodeSuite) TestMixedGraph(c *C) {
memoryIndex := commitgraph.NewMemoryIndex()
for i, hash := range fileIndex.Hashes() {
if hash.String() != "b9d69064b190e7aedccf84731ca1d917871f8a1c" {
- node, err := fileIndex.GetNodeByIndex(i)
+ node, err := fileIndex.GetCommitDataByIndex(i)
c.Assert(err, IsNil)
memoryIndex.Add(hash, node)
}