summaryrefslogtreecommitdiff
path: root/gitdb/object/commit.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-04-29 10:27:01 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-04-29 10:27:01 +0200
commit7e0dc3c3cb8e22cf5d5983bc3424b180b5c563ca (patch)
tree53fe622186474195faa13cc1864cbaa20e448e85 /gitdb/object/commit.py
parentd021904974e182658a5051b5276e31469b9868d4 (diff)
downloadgitdb-7e0dc3c3cb8e22cf5d5983bc3424b180b5c563ca.tar.gz
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
Diffstat (limited to 'gitdb/object/commit.py')
-rw-r--r--gitdb/object/commit.py2
1 files changed, 1 insertions, 1 deletions
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)