X-Git-Url: http://git.subgeniuskitty.com/gitweb-sgk/.git/blobdiff_plain/68aeac55ea239a854c433baae678adaacd434c88..3224ce5b1c78e8af19e3cd63534d0be3e08c4fe1:/gitweb.cgi diff --git a/gitweb.cgi b/gitweb.cgi index d405acd..6ee17d5 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -4437,7 +4437,7 @@ sub git_print_header_div { sub format_repo_url { my ($name, $url) = @_; - return "$name$url\n"; + return "$name$url\n"; } # Group output by placing it in a DIV element and adding a header. @@ -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", @@ -6576,11 +6580,12 @@ sub git_summary { # use per project git URL list in $projectroot/$project/cloneurl # or make project git URL from git base URL and project name - my $url_tag = "URL"; + my $url_tag = "clone URL"; my @url_list = git_get_project_url_list($project); @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 = ""; }