X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FGitalist%2FController%2FRoot.pm;h=4be75a5df4d205e2ea74728584de36116569fcdd;hb=ad95b49ccb140b434a0085a709a29b55dd4b562c;hp=23220ef513836bf2efa0ab59ff17ea69a3283e19;hpb=4111e151275bf52fdd69fcf250c19cc1a8c1514f;p=catagits%2FGitalist.git diff --git a/lib/Gitalist/Controller/Root.pm b/lib/Gitalist/Controller/Root.pm index 23220ef..4be75a5 100644 --- a/lib/Gitalist/Controller/Root.pm +++ b/lib/Gitalist/Controller/Root.pm @@ -95,22 +95,20 @@ Provides the project listing. =cut sub index :Path :Args(0) { - my ( $self, $c ) = @_; - $c->stash(current_model => 'GitRepos'); - # Leave actions up to gitweb at this point. - return $self->run_gitweb($c) - if $c->req->param('a'); + my ( $self, $c ) = @_; + $c->detach($c->req->param('a')) if $c->req->param('a'); + $c->stash(current_model => 'GitRepos'); - my $list = $c->model()->list_projects; - unless(@$list) { - die "No projects found in ". $c->model->repo_dir; - } + my $list = $c->model()->list_projects; + unless(@$list) { + die "No projects found in ". $c->model->repo_dir; + } - $c->stash( - searchtext => $c->req->param('searchtext') || '', - projects => $list, - action => 'index', - ); + $c->stash( + searchtext => $c->req->param('searchtext') || '', + projects => $list, + action => 'index', + ); } =head2 summary