aboutsummaryrefslogtreecommitdiffstats
path: root/commit.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-14 18:21:10 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-14 18:21:10 +0200
commitf6fe29c80d11662a169806dcf413ecdedcb28fa3 (patch)
tree9958034c27521f720f8c5d83c12120ada196f48a /commit.go
parent91bf16b2336e6f80f0742be729582fe5fbbada83 (diff)
downloadgo-git-f6fe29c80d11662a169806dcf413ecdedcb28fa3.tar.gz
core: Storage, removing err returning *Storages
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/commit.go b/commit.go
index 6f12a56..96b3147 100644
--- a/commit.go
+++ b/commit.go
@@ -37,7 +37,10 @@ func (c *Commit) Tree() *Tree {
// Parents return a CommitIter to the parent Commits
func (c *Commit) Parents() *CommitIter {
- return NewCommitIter(c.r, core.NewObjectLookupIter(c.r.os, c.parents))
+ return NewCommitIter(c.r, core.NewObjectLookupIter(
+ c.r.s.ObjectStorage(),
+ c.parents,
+ ))
}
// NumParents returns the number of parents in a commit.