diff options
author | Florian Apolloner <florian@apolloner.eu> | 2008-09-05 22:24:13 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2008-09-05 22:24:13 +0200 |
commit | 3131d1a5295508f583ae22788a1065144bec3cee (patch) | |
tree | 7b35b4b87dba41b417cdc4ce276c3f2af3fca7c3 /lib/git/tree.py | |
parent | 1adc79ac67e5eabaa8b8509150c59bc5bd3fd4e6 (diff) | |
parent | 590638f9a56440a2c41cc04f52272ede04c06a43 (diff) | |
download | gitpython-3131d1a5295508f583ae22788a1065144bec3cee.tar.gz |
Merge branch 'master' of git://gitorious.org/git-python/nud
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 daa2a49e..f1aa0b3b 100644 --- a/lib/git/tree.py +++ b/lib/git/tree.py @@ -27,7 +27,7 @@ class Tree(LazyMixin): @classmethod def construct(cls, repo, treeish, paths = []): output = repo.git.ls_tree(treeish, *paths) - return Tree(repo, **{'id': treeish}).construct_initialize(repo, treeish, output) + return Tree(repo, id=treeish).construct_initialize(repo, treeish, output) def construct_initialize(self, repo, id, text): self.repo = repo @@ -62,9 +62,9 @@ class Tree(LazyMixin): return None if typ == "tree": - return Tree(repo, **{'id': id, 'mode': mode, 'name': name}) + return Tree(repo, id=id, mode=mode, name=name) elif typ == "blob": - return blob.Blob(repo, **{'id': id, 'mode': mode, 'name': name}) + return blob.Blob(repo, id=id, mode=mode, name=name) elif typ == "commit": return None else: |