diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-04 13:17:37 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-04 13:17:37 +0100 |
commit | f41d42ee7e264ce2fc32cea555e5f666fa1b1fe9 (patch) | |
tree | 1d45b8f6fd8a6114b120e13844cc05e930793297 /lib/git/objects/tree.py | |
parent | c4cde8df886112ee32b0a09fcac90c28c85ded7f (diff) | |
download | gitpython-f41d42ee7e264ce2fc32cea555e5f666fa1b1fe9.tar.gz |
Improved cmd error handling in case an invalid revision is specified for an object
repo.tree: improved to be less restricting
Diffstat (limited to 'lib/git/objects/tree.py')
-rw-r--r-- | lib/git/objects/tree.py | 2 |
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 ) |