The heads aren't real objects, just a data structure. Exclude them from serialization...
Tomas Doran [Mon, 11 Jan 2010 00:06:01 +0000 (00:06 +0000)]
lib/Gitalist/Git/Repository.pm

index 5818fb5..5e27b6f 100644 (file)
@@ -63,7 +63,9 @@ class Gitalist::Git::Repository with Gitalist::Git::HasUtils {
                      );
     has heads => ( isa => ArrayRef[HashRef],
                    is => 'ro',
-                   lazy_build => 1);
+                   lazy_build => 1,
+                   traits => [qw/ DoNotSerialize /],
+                   );
     has tags => ( isa => ArrayRef[HashRef],
                    is => 'ro',
                    lazy_build => 1);