aboutsummaryrefslogtreecommitdiffstats
path: root/commit.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-31 00:23:15 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-31 00:23:15 +0200
commit7aa8f0750c93b58876a06e79c50398901e5bdeb8 (patch)
tree3bfde1edae34f7774971d1f4f57547b741a04a00 /commit.go
parentd72a19796ef0f556db93b553547f2ac085b59a1a (diff)
downloadgo-git-7aa8f0750c93b58876a06e79c50398901e5bdeb8.tar.gz
NewObjectLookupIter asking right type
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.go b/commit.go
index f102796..3e82a8a 100644
--- a/commit.go
+++ b/commit.go
@@ -38,6 +38,7 @@ func (c *Commit) Tree() (*Tree, error) {
func (c *Commit) Parents() *CommitIter {
return NewCommitIter(c.r, core.NewObjectLookupIter(
c.r.s.ObjectStorage(),
+ core.CommitObject,
c.parents,
))
}