From 1bda5b3ed48490ad6d8068cddf846ffd52263d22 Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Thu, 5 Nov 2020 06:35:21 +0000 Subject: [PATCH] Changed "project_name/.git" into "project_name" on the main project list page. --- gitweb.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gitweb.cgi b/gitweb.cgi index f7536d2..6b5b731 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -5727,9 +5727,11 @@ sub git_project_list_rows { } print "\n"; } + my $pretty_path = $pr->{'path'}; + $pretty_path =~ s/\/\.git$//; print "" . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary"), -class => "list"}, - esc_html_match_hl($pr->{'path'}, $search_regexp)) . + esc_html_match_hl($pretty_path, $search_regexp)) . "\n" . "" . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary"), -class => "list", -- 2.20.1