diff options
author | Michael Trier <mtrier@gmail.com> | 2008-05-25 22:19:13 -0400 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2008-05-25 22:19:13 -0400 |
commit | 7c60b88138b836307bdde0487c4ffb82121b1c5e (patch) | |
tree | aa913d4d91e9e1ad959b25f613fb7487ebf7910e /lib/git_python | |
parent | 69a56c4e2addd1ec53bb40e8a18f52353d1fc28c (diff) | |
download | gitpython-7c60b88138b836307bdde0487c4ffb82121b1c5e.tar.gz |
Fixed up problem where name doesn't exist on root of tree.
Diffstat (limited to 'lib/git_python')
-rw-r--r-- | lib/git_python/repo.py | 2 | ||||
-rw-r--r-- | lib/git_python/tree.py | 2 |
2 files changed, 3 insertions, 1 deletions
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(): |