From ce7053d091329b130ac107e64595d18cdbd26409 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 12 Sep 2021 07:47:15 +0000 Subject: init: set a useful description "Unnamed repository" for v1 inboxes was misleading, and having a non-existent description for v2 was equally annoying, so set a short description based on the primary address. We remove descriptions when setting up new test inboxes to preserve the behavior of the t/lei-mirror.t test case. --- t/init.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 't') diff --git a/t/init.t b/t/init.t index efa3314d..752e5af9 100644 --- a/t/init.t +++ b/t/init.t @@ -99,6 +99,9 @@ sub quiet_fail { $err = ''; ok(run_script($cmd, $env, $rdr), 'initializes non-existent hierarchy'); ok(-d "$tmpdir/a/b/c/d", 'directory created'); + is(PublicInbox::Inbox::try_cat("$tmpdir/a/b/c/d/description"), + "public inbox for abcd\@example.com\n", 'description set'); + open my $fh, '>', "$tmpdir/d" or BAIL_OUT "open: $!"; close $fh; $cmd = [ '-init', 'd-f-conflict', "$tmpdir/d/f/conflict", -- cgit v1.2.3-24-ge0c7