From 3224ce5b1c78e8af19e3cd63534d0be3e08c4fe1 Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Thu, 5 Nov 2020 06:45:11 +0000 Subject: [PATCH] Supporess suffix ".git" on path breadcrumbs in tree mode. --- gitweb.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gitweb.cgi b/gitweb.cgi index 6b5b731..6ee17d5 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -4549,8 +4549,10 @@ sub git_print_page_path { print "
"; + my $pretty_project = $project; + $pretty_project =~ s/\/\.git$//; print $cgi->a({-href => href(action=>"tree", hash_base=>$hb), - -title => 'tree root'}, to_utf8("[$project]")); + -title => 'tree root'}, to_utf8("[$pretty_project]")); print " / "; if (defined $name) { my @dirname = split '/', $name; -- 2.20.1