From aafea91d6c709908261b2bc3dad05ce0af8bb037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Fri, 26 Apr 2013 14:24:59 +0200 Subject: [PATCH] Issue #214: Cannot call TreeEntry() / IndexEntry() --- src/pygit2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pygit2.c b/src/pygit2.c index 4393870..be1282b 100644 --- a/src/pygit2.c +++ b/src/pygit2.c @@ -203,7 +203,7 @@ moduleinit(PyObject* m) INIT_TYPE(CommitType, &ObjectType, NULL) INIT_TYPE(SignatureType, NULL, PyType_GenericNew) INIT_TYPE(TreeType, &ObjectType, NULL) - INIT_TYPE(TreeEntryType, NULL, PyType_GenericNew) + INIT_TYPE(TreeEntryType, NULL, NULL) INIT_TYPE(TreeIterType, NULL, NULL) INIT_TYPE(TreeBuilderType, NULL, PyType_GenericNew) INIT_TYPE(BlobType, &ObjectType, NULL) @@ -229,7 +229,7 @@ moduleinit(PyObject* m) /* Index */ INIT_TYPE(IndexType, NULL, PyType_GenericNew) - INIT_TYPE(IndexEntryType, NULL, PyType_GenericNew) + INIT_TYPE(IndexEntryType, NULL, NULL) INIT_TYPE(IndexIterType, NULL, NULL) ADD_TYPE(m, Index); ADD_TYPE(m, IndexEntry);