From 7c60b88138b836307bdde0487c4ffb82121b1c5e Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Sun, 25 May 2008 22:19:13 -0400 Subject: Fixed up problem where name doesn't exist on root of tree. --- lib/git_python/repo.py | 2 +- lib/git_python/tree.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/git_python') diff --git a/lib/git_python/repo.py b/lib/git_python/repo.py index 0c20b6e3..c71ae6fb 100644 --- a/lib/git_python/repo.py +++ b/lib/git_python/repo.py @@ -185,7 +185,7 @@ class Repo(object): ``treeish`` is the reference (default 'master') ``paths`` - is an optional Array of directory paths to restrict the tree (deafult []) + is an optional Array of directory paths to restrict the tree (default []) Examples:: diff --git a/lib/git_python/tree.py b/lib/git_python/tree.py index 3faec26b..9c4dab1d 100644 --- a/lib/git_python/tree.py +++ b/lib/git_python/tree.py @@ -7,6 +7,8 @@ class Tree(LazyMixin): LazyMixin.__init__(self) self.repo = repo self.id = None + self.mode = None + self.name = None self.contents = None for k, v in kwargs.items(): -- cgit v1.2.1