Fixed up problem where name doesn't exist on root of tree.
authorMichael Trier <mtrier@gmail.com>
Mon, 26 May 2008 02:19:13 +0000 (22:19 -0400)
committerMichael Trier <mtrier@gmail.com>
Mon, 26 May 2008 02:19:13 +0000 (22:19 -0400)
lib/git_python/repo.py
lib/git_python/tree.py

index 0c20b6e3e57925d54a924009ebbfca88f9630b08..c71ae6fb4dea62a971699bbad5e8bf68d7b21435 100644 (file)
@@ -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::
 
index 3faec26b62605b4f9217c4732b0079759ed3e89c..9c4dab1d6f76dd3a86269059b0e3c4fda884d44f 100644 (file)
@@ -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():