Merge branch 'model-reorg'
Dan Brook [Wed, 11 Nov 2009 15:50:07 +0000 (15:50 +0000)]
1  2 
lib/Gitalist/Controller/Root.pm

@@@ -111,9 -111,8 +111,10 @@@ A summary of what's happening in the re
  sub summary : Local {
    my ( $self, $c ) = @_;
    my $project = $c->stash->{Project};
+   $c->detach('error_404') unless $project;
    my $commit = $self->_get_commit($c);
 +  my @heads  = $project->heads;
 +  my $maxitems = Gitalist->config->{paging}{summary} || 10;
    $c->stash(
      commit    => $commit,
      info      => $project->info,