SubRequest
/;
-our $VERSION = '0.000005';
+our $VERSION = '0.000006_01';
$VERSION = eval $VERSION;
__PACKAGE__->config(
before 'execute' => sub {
my ($self, $controller, $c, @args) = @_;
$c->stash->{filename} = join('/', @args) || ''
- unless $c->stash->{filename};
+ unless $c->stash->{filename};
};
1;
# FIXME - This ain't pretty
$c->stash(parent => shift @rest)
- if @rest == 2
- # Check that the single arg is unlikely to be a path.
- or @rest && to_SHA1($rest[0]) && $c->stash->{Repository}->get_object_or_head($rest[0]);
+ if @rest == 2
+ # Check that the single arg is unlikely to be a path.
+ or @rest && to_SHA1($rest[0]) && $c->stash->{Repository}->get_object_or_head($rest[0]);
$c->stash(filename => $rest[-1])
if @rest;
}