From 7e0dc3c3cb8e22cf5d5983bc3424b180b5c563ca Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 29 Apr 2011 10:27:01 +0200 Subject: Applied more fixes and an implementation for the RepositoryPathsMixin. This showed that we need to distinguish between plain object dbs with a respective interface and full repositories, which have references and remotes. Ideally, the ones that require only odbs use the odb member, others use the repo member --- gitdb/object/commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitdb/object/commit.py') diff --git a/gitdb/object/commit.py b/gitdb/object/commit.py index a42660b..7f3d9e4 100644 --- a/gitdb/object/commit.py +++ b/gitdb/object/commit.py @@ -118,7 +118,7 @@ class Commit(base.Object, Traversable, Serializable): def _set_cache_(self, attr): if attr in Commit.__slots__: # read the data in a chunk, its faster - then provide a file wrapper - binsha, typename, self.size, stream = self.odb.odb.stream(self.binsha) + binsha, typename, self.size, stream = self.odb.stream(self.binsha) self._deserialize(StringIO(stream.read())) else: super(Commit, self)._set_cache_(attr) -- cgit v1.2.1