diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-14 17:24:15 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-14 17:24:15 +0200 |
commit | 6eeae8b24135b4de05f6d725b009c287577f053d (patch) | |
tree | 017dd833346aa96c4cb4177a4352e3de5ff176bc /lib/git/objects/base.py | |
parent | ead94f267065bb55303f79a0a6df477810b3c68d (diff) | |
download | gitpython-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.py | 2 |
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: |