aboutsummaryrefslogtreecommitdiff
path: root/lib/git/objects/tag.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/tag.py
parentead94f267065bb55303f79a0a6df477810b3c68d (diff)
downloadGitPython-6eeae8b24135b4de05f6d725b009c287577f053d.tar.gz
GitPython-6eeae8b24135b4de05f6d725b009c287577f053d.zip
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/tag.py')
-rw-r--r--lib/git/objects/tag.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/objects/tag.py b/lib/git/objects/tag.py
index 261d835f..77d715c7 100644
--- a/lib/git/objects/tag.py
+++ b/lib/git/objects/tag.py
@@ -48,7 +48,7 @@ class TagObject(base.Object):
"""
Cache all our attributes at once
"""
- if attr in self.__slots__:
+ if attr in TagObject.__slots__:
output = self.repo.git.cat_file(self.type,self.id)
lines = output.split("\n")