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:47 +0000
committerEric Wong <e@80x24.org>2022-11-28 23:38:56 +0000
commit4bc708478281771874bb23b88b9a04b70dddac78 (patch)
tree53b5aa416f277c045e516db09b3d232f4db7f81e /lib/PublicInbox
parenta7f5a512269b31df73aa3716ed3ea014a1839bac (diff)
downloadpublic-inbox-4bc708478281771874bb23b88b9a04b70dddac78.tar.gz
We can still set $GIT_DIR/description when cloning coderepos with
--inbox-config=never
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/LeiMirror.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm
index 3fea4c29..21341efb 100644
--- a/lib/PublicInbox/LeiMirror.pm
+++ b/lib/PublicInbox/LeiMirror.pm
@@ -218,8 +218,6 @@ sub set_description ($) {
 sub index_cloned_inbox {
         my ($self, $iv) = @_;
         my $lei = $self->{lei};
-        eval { set_description($self) };
-        warn $@ if $@;
 
         # n.b. public-inbox-clone works w/o (SQLite || Xapian)
         # lei is useless without Xapian + SQLite
@@ -580,6 +578,8 @@ sub v1_done { # called via OnDestroy
                 $f->unlink_on_destroy(0);
         }
         pack_refs($self, $dst) if delete $self->{-do_pack_refs};
+        eval { set_description($self) };
+        warn $@ if $@;
         return if ($self->{-is_epoch} ||
                 $self->{lei}->{opt}->{'inbox-config'} ne 'always');
         write_makefile($dst, 1);
@@ -604,6 +604,8 @@ sub v2_done { # called via OnDestroy
         }
         write_makefile($dst, 2);
         undef $lck; # unlock
+        eval { set_description($self) };
+        warn $@ if $@;
         index_cloned_inbox($self, 2);
 }