our $SHA1RE = qr/[0-9a-fA-F]{40}/;
# These are static and only need to be setup on app start.
-has repo_dir => ( isa => NonEmptySimpleStr, is => 'ro' ); # Fixme - path::class
+has repo_dir => ( isa => NonEmptySimpleStr, is => 'ro', required => 1 ); # Fixme - path::class
has git => ( isa => NonEmptySimpleStr, is => 'ro', lazy_build => 1 );
# These are dynamic and can be different from one request to the next.
has project => ( isa => NonEmptySimpleStr, is => 'rw');
BEGIN { use_ok 'Gitalist::Model::Git' }
-my $c = bless {}, 'Gitalist';
-my $m = Git::Repos->new($c, { repo_dir => "$Bin/lib/repositories" });
+my $m = Git::Repos->new({ repo_dir => "$Bin/lib/repositories" });
isa_ok($m, 'Git::Repos');
# 'bare.git' is a bare git repository in the repository dir