aboutsummaryrefslogtreecommitdiffstats
path: root/references_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'references_test.go')
-rw-r--r--references_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/references_test.go b/references_test.go
index 74cf7de..f9fd292 100644
--- a/references_test.go
+++ b/references_test.go
@@ -291,7 +291,7 @@ func (s *ReferencesSuite) TestRevList(c *C) {
for _, t := range referencesTests {
r := s.NewRepositoryFromPackfile(fixtures.ByURL(t.repo).One())
- commit, err := r.Commit(plumbing.NewHash(t.commit))
+ commit, err := r.CommitObject(plumbing.NewHash(t.commit))
c.Assert(err, IsNil)
revs, err := References(commit, t.path)
@@ -300,7 +300,7 @@ func (s *ReferencesSuite) TestRevList(c *C) {
for i := range revs {
if revs[i].Hash.String() != t.revs[i] {
- commit, err := s.Repository.Commit(plumbing.NewHash(t.revs[i]))
+ commit, err := s.Repository.CommitObject(plumbing.NewHash(t.revs[i]))
c.Assert(err, IsNil)
equiv, err := equivalent(t.path, revs[i], commit)
c.Assert(err, IsNil)
@@ -358,7 +358,7 @@ func (s *ReferencesSuite) commits(c *C, repo string, hs ...string) []*object.Com
result := make([]*object.Commit, 0, len(hs))
for _, h := range hs {
- commit, err := r.Commit(plumbing.NewHash(h))
+ commit, err := r.CommitObject(plumbing.NewHash(h))
c.Assert(err, IsNil)
result = append(result, commit)