Fix notabs test
Dagfinn Ilmari Mannsåker [Thu, 17 Dec 2009 15:45:11 +0000 (15:45 +0000)]
lib/Gitalist/Git/Object.pm
lib/Gitalist/Git/Project.pm
t/author/notabs.t

index de693f3..9cefe6c 100644 (file)
@@ -74,8 +74,8 @@ class Gitalist::Git::Object {
     # via gitweb.pm circa line 1305
     use Fcntl ':mode';
     use constant {
-       S_IFINVALID => 0030000,
-       S_IFGITLINK => 0160000,
+        S_IFINVALID => 0030000,
+        S_IFGITLINK => 0160000,
     };
 
     # submodule/subproject, a commit object reference
index f4b2345..975483f 100644 (file)
@@ -124,7 +124,7 @@ class Gitalist::Git::Project with Gitalist::Git::HasUtils {
         $sha1 = $self->head_hash($sha1)
             if !$sha1 || $sha1 !~ $SHA1RE;
 
-       my @search_opts;
+        my @search_opts;
         if ($search) {
             $search->{type} = 'grep'
                 if $search->{type} eq 'commit';
@@ -284,12 +284,12 @@ class Gitalist::Git::Project with Gitalist::Git::HasUtils {
         my @revlines = $self->run_cmd_list('for-each-ref',
           '--sort=-creatordate',
           '--format=%(objectname) %(objecttype) %(refname) %(*objectname) %(*objecttype) %(subject)%00%(creator)',
-         'refs/tags'
+          'refs/tags'
         );
         my @ret;
         for my $line (@revlines) {
             my($refinfo, $creatorinfo) = split /\0/, $line;
-           my($rev, $type, $name, $refid, $reftype, $title) = split(' ', $refinfo, 6);
+            my($rev, $type, $name, $refid, $reftype, $title) = split(' ', $refinfo, 6);
             my($creator, $epoch, $tz) = ($creatorinfo =~ /^(.*) ([0-9]+) (.*)$/);
             $name =~ s!^refs/tags/!!;
 
@@ -307,9 +307,9 @@ class Gitalist::Git::Project with Gitalist::Git::HasUtils {
     }
 
     method _build_references {
-       # 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c refs/tags/v2.6.11
-       # c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11^{}
-       my @reflist = $self->run_cmd_list(qw(show-ref --dereference))
+        # 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c refs/tags/v2.6.11
+        # c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11^{}
+        my @reflist = $self->run_cmd_list(qw(show-ref --dereference))
             or return;
         my %refs;
         for (@reflist) {
index 5f3efe8..693e048 100644 (file)
@@ -1,3 +1,3 @@
 use Test::NoTabs;
-all_perl_files_ok;
+all_perl_files_ok(qw(t lib));