summaryrefslogtreecommitdiff
path: root/lib/git/objects/tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/objects/tree.py')
-rw-r--r--lib/git/objects/tree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/objects/tree.py b/lib/git/objects/tree.py
index bcb805af..27bd84d0 100644
--- a/lib/git/objects/tree.py
+++ b/lib/git/objects/tree.py
@@ -226,7 +226,7 @@ class Tree(base.IndexObject, diff.Diffable):
if isinstance(item, basestring):
# compatability
for obj in self._cache:
- if obj.path == item:
+ if obj.name == item:
return obj
# END for each obj
raise KeyError( "Blob or Tree named %s not found" % item )