summaryrefslogtreecommitdiff
path: root/lib/git/objects/tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/objects/tree.py')
-rw-r--r--lib/git/objects/tree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/objects/tree.py b/lib/git/objects/tree.py
index 1bc35d95..01dfb37b 100644
--- a/lib/git/objects/tree.py
+++ b/lib/git/objects/tree.py
@@ -29,7 +29,7 @@ class Tree(base.IndexObject):
type = "tree"
__slots__ = "_cache"
- def __init__(self, repo, id, mode=None, path=None):
+ def __init__(self, repo, id, mode=0, path=None):
super(Tree, self).__init__(repo, id, mode, path)
def _set_cache_(self, attr):