Bumped version number and fixed tabs. 0.000006_01
Dan Brook [Fri, 2 Apr 2010 23:23:24 +0000 (00:23 +0100)]
lib/Gitalist.pm
lib/Gitalist/ActionRole/FilenameArgs.pm
lib/Gitalist/URIStructure/Ref.pm

index 53dabb1..1be66c8 100644 (file)
@@ -14,7 +14,7 @@ use Catalyst qw/
                 SubRequest
 /;
 
-our $VERSION = '0.000005';
+our $VERSION = '0.000006_01';
 $VERSION = eval $VERSION;
 
 __PACKAGE__->config(
index 1401cfd..f0ed177 100644 (file)
@@ -7,7 +7,7 @@ requires 'execute';
 before 'execute' => sub {
     my ($self, $controller, $c, @args) = @_;
     $c->stash->{filename} = join('/', @args) || ''
-        unless $c->stash->{filename};
+        unless $c->stash->{filename};
 };
 
 1;
index c1cab5c..20337fe 100644 (file)
@@ -31,9 +31,9 @@ sub _set_diff_args {
 
     # 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;
 }