From 53b89d8ddb0ec0643ab0c14d5c251d1e7ffbc8cb Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 12 Aug 2005 22:12:58 +0200 Subject: [PATCH] fix search parsing, later git does not print a trailing space --- gitweb.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.11.0