diff options
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: |