aboutsummaryrefslogtreecommitdiffstats
path: root/references_test.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-03-21 10:27:56 +0100
committerGitHub <noreply@github.com>2017-03-21 10:27:56 +0100
commitf51d4a8476f865eef27011a9d90e03566c43d59c (patch)
tree70e500b28fb9025dffce4cdb106e2ca3c47d9c9e /references_test.go
parent5f4169fe242e7c80d779984a86a1de5a1eb78218 (diff)
parent0c82b411f6cdf4ec66689042d77c35efe41106c3 (diff)
downloadgo-git-f51d4a8476f865eef27011a9d90e03566c43d59c.tar.gz
Merge pull request #296 from ajnavarro/improvement/repository
git: Repository methods changes
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 af59c05..e901ec0 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)