Fix reflog and search actions chaining to the right place.
Tomas Doran [Wed, 20 Jan 2010 21:19:48 +0000 (21:19 +0000)]
lib/Gitalist/Controller/Repository.pm

index b3ed666..c07fe88 100644 (file)
@@ -17,7 +17,7 @@ The action for the search form.
 
 =cut
 
-sub search : Chained('base') Args(0) {
+sub search : Chained('find') Args(0) {
   my($self, $c) = @_;
   my $repository = $c->stash->{Repository};
   # Lifted from /shortlog.
@@ -45,7 +45,7 @@ Expose the local reflog. This may go away.
 
 =cut
 
-sub reflog : Chained('base') Args(0) {
+sub reflog : Chained('find') Args(0) {
   my ( $self, $c ) = @_;
   my @log = $c->stash->{Repository}->reflog(
       '--since=yesterday'