X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FGitalist%2FController%2FRoot.pm;h=5a75fe75d90a09621c341f289f2c9d3d535654da;hb=d8abdf1cd357564b8e9e7b2c766feb9990a941fb;hp=0b2733a3ac01bdea062525793a941dd838b35d50;hpb=74af77a336a18f3f46d0ebe723e1495d12faacd1;p=catagits%2FGitalist.git diff --git a/lib/Gitalist/Controller/Root.pm b/lib/Gitalist/Controller/Root.pm index 0b2733a..5a75fe7 100644 --- a/lib/Gitalist/Controller/Root.pm +++ b/lib/Gitalist/Controller/Root.pm @@ -329,8 +329,8 @@ Expose the local reflog. This may go away. sub reflog : Local { my ( $self, $c ) = @_; - - my @log = $c->model()->reflog( + $c->stash(current_model => 'GitRepos'); + my @log = $c->stash->{Project}->reflog( '--since=yesterday' ); @@ -342,7 +342,8 @@ sub reflog : Local { sub search : Local { my($self, $c) = @_; - + $c->stash(current_action => 'GitRepos'); + my $project = $c->stash->{Project}; my $commit = $self->_get_commit($c); # Lifted from /shortlog. my %logargs = ( @@ -358,7 +359,7 @@ sub search : Local { $c->stash( commit => $commit, - results => [$c->model()->list_revs(%logargs)], + results => [$project->list_revs(%logargs)], action => 'search', # This could be added - page => $page, );