]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Simplify fixed string search
[Gitweb] / gitweb.perl
index 72634848f3bc1d67adb08502cb3d0bb9702f9b06b93f29ebebc21469a0077a17..7a24642132f0003b920d657ebb8a71ae8478391742248f459a3180e3e06e826b 100755 (executable)
@@ -5255,14 +5255,16 @@ sub git_search {
                } elsif ($searchtype eq 'committer') {
                        $greptype = "--committer=";
                }
-               $greptype .= $search_regexp;
-               my @commitlist = parse_commits($hash, 101, (100 * $page), undef, $greptype);
+               $greptype .= $searchtext;
+               my @commitlist = parse_commits($hash, 101, (100 * $page), undef,
+                                              $greptype, '--fixed-strings');
 
                my $paging_nav = '';
                if ($page > 0) {
                        $paging_nav .=
                                $cgi->a({-href => href(action=>"search", hash=>$hash,
-                                                      searchtext=>$searchtext, searchtype=>$searchtype)},
+                                                      searchtext=>$searchtext,
+                                                      searchtype=>$searchtype)},
                                        "first");
                        $paging_nav .= " ⋅ " .
                                $cgi->a({-href => href(-replay=>1, page=>$page-1),
This page took 0.24099 seconds and 4 git commands to generate.