Moved snapshot method onto Project as both tree and commit sha1's are acceptable...
[catagits/Gitalist.git] / lib / Gitalist / Git / Object / Tree.pm
index e284aa4..0d05689 100644 (file)
@@ -4,6 +4,7 @@ use MooseX::Declare;
 class Gitalist::Git::Object::Tree
     extends Gitalist::Git::Object
     with Gitalist::Git::Object::HasTree {
+        has '+type' => ( default => 'tree' );
         has '+_gpp_obj' => ( handles => [ 'directory_entries',
                                       ],
                          );