diff options
Diffstat (limited to 'lib/git/objects/tree.py')
-rw-r--r-- | lib/git/objects/tree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/objects/tree.py b/lib/git/objects/tree.py index 371c0dd3..413efdb8 100644 --- a/lib/git/objects/tree.py +++ b/lib/git/objects/tree.py @@ -43,8 +43,8 @@ class Tree(base.IndexObject, diff.Diffable): tree_id = 040 - def __init__(self, repo, id, mode=0, path=None): - super(Tree, self).__init__(repo, id, mode, path) + def __init__(self, repo, sha, mode=0, path=None): + super(Tree, self).__init__(repo, sha, mode, path) def _set_cache_(self, attr): if attr == "_cache": @@ -150,7 +150,7 @@ class Tree(base.IndexObject, diff.Diffable): def __repr__(self): - return '<git.Tree "%s">' % self.id + return '<git.Tree "%s">' % self.sha @classmethod def _iter_recursive(cls, repo, tree, cur_depth, max_depth, predicate, prune ): |