Start conversion to new model
Tomas Doran [Wed, 4 Nov 2009 21:18:51 +0000 (21:18 +0000)]
lib/Gitalist/Controller/Root.pm

index af0f86b..6381a8e 100644 (file)
@@ -88,14 +88,14 @@ Provides the project listing.
 
 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 $list = $c->model()->list_projects;
   unless(@$list) {
-    die "No projects found in ".Gitalist->config->{repodir};
+    die "No projects found in ". $c->model->repo_dir;
   }
 
   $c->stash(