}
$c->stash->{version} = $Gitalist::VERSION;
- $c->stash->{git_version} = $c->model('GitRepos')->run_cmd('--version');
+ # check git's version by running it on the first project in the list.
+ $c->stash->{git_version} = $c->model()->list_projects->[0]->run_cmd('--version');
$c->stash->{title} = $title;
- #$c->stash->{baseurl} = $ENV{PATH_INFO} && uri_escape($base_url);
$c->stash->{stylesheet} = $c->config->{stylesheet} || 'gitweb.css';
$c->stash->{project} = $project;
use MooseX::Declare;
-class Gitalist::Git::Repo with Gitalist::Git::HasUtils {
+class Gitalist::Git::Repo {
use MooseX::Types::Common::String qw/NonEmptySimpleStr/;
use MooseX::Types::Path::Class qw/Dir/;
use MooseX::Types::Moose qw/ArrayRef/;
use aliased 'Gitalist::Git::Project';
- # FIXME - this is nasty as we build the Git::Utils thing without a project name
- # should refactor or something?
- method _build__util {
- Gitalist::Git::Util->new();
- }
-
has repo_dir => (
isa => Dir,
is => 'ro',