diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-11 20:21:22 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-11 20:21:22 +0200 |
commit | 9a119924bd314934158515a1a5f5877be63f6f91 (patch) | |
tree | 927fbe62fe20c62eedf7beed91ac80b10dc60774 /lib/git/tree.py | |
parent | 15b9129ec639112e94ea96b6a395ad9b149515d1 (diff) | |
download | gitpython-9a119924bd314934158515a1a5f5877be63f6f91.tar.gz |
fixed issue in Ref.name implementation which would not handle components properly
Diffstat (limited to 'lib/git/tree.py')
-rw-r--r-- | lib/git/tree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/tree.py b/lib/git/tree.py index db4a3e22..597668ae 100644 --- a/lib/git/tree.py +++ b/lib/git/tree.py @@ -47,11 +47,11 @@ class Tree(base.IndexObject): return None if typ == "tree": - return Tree(repo, id=id, mode=mode, path=path) + return Tree(repo, id, mode, path) elif typ == "blob": - return blob.Blob(repo, id=id, mode=mode, path=path) + return blob.Blob(repo, id, mode, path) elif typ == "commit": - return None + return None else: raise(TypeError, "Invalid type: %s" % typ) |