about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-11-28 05:31:59 +0000
committerEric Wong <e@80x24.org>2022-11-28 23:38:57 +0000
commit9e8f3256e5891841094f43e684b4a5b420bdb7ab (patch)
tree8cd058c52f347783f7d5c90bbbeb0133566d2b3f /lib/PublicInbox
parent9537b9c7201a7c656c3efcb9918df930a7447981 (diff)
downloadpublic-inbox-9e8f3256e5891841094f43e684b4a5b420bdb7ab.tar.gz
The lengthy-but-human-meaningful remote names are more expensive
at runtime and increase packed-refs space.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/LeiMirror.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm
index 2da4f881..04d9494c 100644
--- a/lib/PublicInbox/LeiMirror.pm
+++ b/lib/PublicInbox/LeiMirror.pm
@@ -438,11 +438,7 @@ sub forkgroup_prep {
                 }
         }
         my $key = $self->{-key} // die 'BUG: no -key';
-        my $rn = $key;
-        $rn =~ s!\A[\./]+!!s;
-        $rn =~ s/\.*?(?:\.git)?\.*?\z//s;
-        $rn =~ s![\@\{\}/:\?\[\]\^~\s\f[:cntrl:]\*]!_!isg;
-        $rn .= '-'.substr(sha256_hex($key), 0, 16);
+        my $rn = substr(sha256_hex($key), 0, 16);
         unless ($self->{dry_run}) {
                 # --no-tags is required to avoid conflicts
                 for ("url=$uri", "fetch=+refs/*:refs/remotes/$rn/*",