summaryrefslogtreecommitdiff
path: root/lib/git/objects/base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-14 17:24:15 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-14 17:24:15 +0200
commit6eeae8b24135b4de05f6d725b009c287577f053d (patch)
tree017dd833346aa96c4cb4177a4352e3de5ff176bc /lib/git/objects/base.py
parentead94f267065bb55303f79a0a6df477810b3c68d (diff)
downloadgitpython-6eeae8b24135b4de05f6d725b009c287577f053d.tar.gz
test: Added time-consuming test which could also be a benchmark in fact - currently it cause hundreds of command invocations which is slow
Fixed issue with trees not properly initialized with their default mode _set_cache_: some objects checked whether the attribute was within their __slots__ although it should have been accessed through its class
Diffstat (limited to 'lib/git/objects/base.py')
-rw-r--r--lib/git/objects/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/objects/base.py b/lib/git/objects/base.py
index d3e0d943..9789d72a 100644
--- a/lib/git/objects/base.py
+++ b/lib/git/objects/base.py
@@ -121,7 +121,7 @@ class IndexObject(Object):
self.mode = self._mode_str_to_int(mode)
def _set_cache_(self, attr):
- if attr in self.__slots__:
+ if attr in IndexObject.__slots__:
# they cannot be retrieved lateron ( not without searching for them )
raise AttributeError( "path and mode attributes must have been set during %s object creation" % type(self).__name__ )
else: