From: Kay Sievers Date: Fri, 12 Aug 2005 20:12:58 +0000 (+0200) Subject: fix search parsing, later git does not print a trailing space X-Git-Tag: v1.4.0~1^2~65 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=53b89d8ddb0ec0643ab0c14d5c251d1e7ffbc8cb;p=git.git fix search parsing, later git does not print a trailing space --- diff --git a/gitweb.cgi b/gitweb.cgi index 378fe2ea..8d4e4f70 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -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 "\n";