$c->stash->{version} = $Gitalist::VERSION;
# check git's version by running it on the first project in the list.
- $c->stash->{git_version} = $c->model()->projects->[0]->run_cmd('--version');
$c->stash->{title} = $title;
$c->stash->{stylesheet} = $c->config->{stylesheet} || 'gitweb.css';
|| 'HEAD' ),
);
}
+ my $a_project = $c->stash->{Project} || $c->model()->projects->[0];
+ $c->stash->{git_version} = $a_project->run_cmd('--version');
}
# Formally git_footer_html
=head1 NAME
-Git::Repo - Model of a repository directory
+Gitalist::Git::Repo - Model of a repository directory
=head1 SYNOPSIS
lazy_build => 1,
);
- method BUILD { $self->projects() }
-
=head1 METHODS
is($repo->repo_dir, $repo_dir, "repo->repo_dir is correct" );
-my $project_list = $repo->{projects};
+my $project_list = $repo->projects;
isa_ok(@$project_list[0], 'Gitalist::Git::Project');
dies_ok {