Code

Merge branch 'maint'
[git.git] / gitweb / gitweb.perl
index 8b0276727146d6fbd9123b6bbe8b5f0631f823b1..4efeebc2276e5532938c25a8eaa188590fbdb794 100755 (executable)
@@ -6521,12 +6521,13 @@ sub git_search {
                        $paging_nav .= " ⋅ next";
                }
 
-               if ($#commitlist >= 100) {
-               }
-
                git_print_page_nav('','', $hash,$co{'tree'},$hash, $paging_nav);
                git_print_header_div('commit', esc_html($co{'title'}), $hash);
-               git_search_grep_body(\@commitlist, 0, 99, $next_link);
+               if ($page == 0 && !@commitlist) {
+                       print "<p>No match.</p>\n";
+               } else {
+                       git_search_grep_body(\@commitlist, 0, 99, $next_link);
+               }
        }
 
        if ($searchtype eq 'pickaxe') {