summaryrefslogtreecommitdiff
path: root/lib/git/objects/base.py
diff options
context:
space:
mode:
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: