about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiMirror.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LeiMirror.pm')
-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/*",