fix search parsing, later git does not print a trailing space
authorKay Sievers <kay@mam.(none)>
Fri, 12 Aug 2005 20:12:58 +0000 (22:12 +0200)
committerKay Sievers <kay@mam.(none)>
Fri, 12 Aug 2005 20:12:58 +0000 (22:12 +0200)
gitweb.cgi

index 378fe2e..8d4e4f7 100755 (executable)
@@ -15,7 +15,7 @@ use CGI::Carp qw(fatalsToBrowser);
 use Fcntl ':mode';
 
 my $cgi = new CGI;
-my $version =          "239";
+my $version =          "240";
 my $my_url =           $cgi->url();
 my $my_uri =           $cgi->url(-absolute => 1);
 my $rss_link = "";
@@ -2134,7 +2134,7 @@ sub git_search {
                                        next;
                                }
                                push @files, \%set;
-                       } elsif ($line =~ m/^([0-9a-fA-F]{40}) /){
+                       } elsif ($line =~ m/^([0-9a-fA-F]{40})$/){
                                if (%co) {
                                        if ($alternate) {
                                                print "<tr class=\"dark\">\n";