X-Git-Url: http://git.subgeniuskitty.com/gitweb-sgk/.git/blobdiff_plain/201a584d8ef3cfccb32491e17604c491d5eb8e93..eaec152fe27378e7b65def318294bbb91e850f8f:/gitweb.cgi
diff --git a/gitweb.cgi b/gitweb.cgi
index 57b60c4..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;
@@ -5727,9 +5729,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",
@@ -6581,6 +6585,7 @@ sub git_summary {
@url_list = map { "$_/$project" } @git_base_url_list unless @url_list;
foreach my $git_url (@url_list) {
next unless $git_url;
+ $git_url =~ s/\.git$//;
print format_repo_url($url_tag, $git_url);
$url_tag = "";
}
|