about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwCoderepo.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/WwwCoderepo.pm')
-rw-r--r--lib/PublicInbox/WwwCoderepo.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/WwwCoderepo.pm b/lib/PublicInbox/WwwCoderepo.pm
index e3d45c56..4d8713b4 100644
--- a/lib/PublicInbox/WwwCoderepo.pm
+++ b/lib/PublicInbox/WwwCoderepo.pm
@@ -142,9 +142,9 @@ EOM
         my $n;
         if (@s) {
                 $n = $ctx->{git}->local_nick // die "BUG: $ctx->{git_dir} nick";
-                $n =~ s/\.git\z/-/;
-                ($n) = ($n =~ m!([^/]+)\z!);
-                $n = ascii_html($n);
+                $n =~ s!\.git/*\z!!;
+                ($n) = ($n =~ m!([^/]+)/*\z!);
+                $n = ascii_html($n).'-';
         }
         for (@r) {
                 my (undef, $oid, $ref, $s, $cd) = split(/\0/);