Clean up Root::end action, and properly handle missing project descriptions.
[catagits/Gitalist.git] / lib / Gitalist / Git / Util.pm
index c3970fb..68fa266 100644 (file)
@@ -4,7 +4,7 @@ class Gitalist::Git::Util {
     use File::Which;
     use Git::PurePerl;
     use MooseX::Types::Common::String qw/NonEmptySimpleStr/;
-    has gitdir => ( isa => "Path::Class::Dir", is => 'ro' );
+    has gitdir => ( isa => "Str", is => 'ro', required => 1 );
     has _git      => ( isa => NonEmptySimpleStr, is => 'ro', lazy_build => 1 );
     sub _build__git {
         my $git = File::Which::which('git');