Update changelog and version.
[catagits/Gitalist.git] / lib / Gitalist.pm
index 802e726..e1894fe 100644 (file)
@@ -13,7 +13,7 @@ use Catalyst qw/
                 StackTrace
 /;
 
-our $VERSION = '0.000003';
+our $VERSION = '0.000004';
 $VERSION = eval $VERSION;
 
 __PACKAGE__->config(
@@ -26,10 +26,10 @@ __PACKAGE__->setup();
 
 around uri_for => sub {
   my ($orig, $c) = (shift, shift);
-  my $project_name = $c->stash->{'Project'} && $c->stash->{'Project'}->name;
+  my $repository_name = $c->stash->{'Repository'} && $c->stash->{'Repository'}->name;
   my $hash = ref($_[-1]) eq 'HASH' ? pop @_ : {};
   my $params = Catalyst::Utils::merge_hashes(
-    { p => $hash->{p} || $project_name },
+    { p => $hash->{p} || $repository_name },
     $hash,
   );
   delete $params->{p} unless defined $params->{p} && length $params->{p};