summaryrefslogtreecommitdiff
path: root/git/objects/base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-09 13:15:09 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-09 17:16:35 +0100
commit18caa610d50b92331485013584f5373804dd0416 (patch)
tree4ff1e44d7451a99d10ea1d2acf78764698c16229 /git/objects/base.py
parent0d9f1495004710b77767393a29f33df76d7b0fb5 (diff)
downloadgitpython-18caa610d50b92331485013584f5373804dd0416.tar.gz
Added test to verify binary diffs are working as well.
Related to #74
Diffstat (limited to 'git/objects/base.py')
-rw-r--r--git/objects/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git/objects/base.py b/git/objects/base.py
index 3f595d9d..eb59b0a9 100644
--- a/git/objects/base.py
+++ b/git/objects/base.py
@@ -158,7 +158,8 @@ class IndexObject(Object):
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__)
+ "Attribute '%s' unset: path and mode attributes must have been set during %s object creation"
+ % (attr, type(self).__name__))
else:
super(IndexObject, self)._set_cache_(attr)
# END hanlde slot attribute