]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/www_listing: quiet down stderr in -httpd
authorEric Wong <e@80x24.org>
Thu, 26 Dec 2019 06:48:02 +0000 (06:48 +0000)
committerEric Wong <e@80x24.org>
Thu, 26 Dec 2019 07:27:00 +0000 (07:27 +0000)
We need to init all.git for the v2 repo test to ensure
`git --git-dir=v2/all.git rev-parse --git-path objects/info/alternates`
doesn't warn or fail and clutter stderr.  This is noticeable
when setting TAIL="tail -F" in env before running this test.

t/www_listing.t

index 4fcb43ea7bf88eaec38025e3c53ddc9971fde117..2ff053dedd01bfd0a605b2b698f8556f2c9bed8b 100644 (file)
@@ -72,6 +72,7 @@ SKIP: {
        my @clone = qw(git clone -q -s --bare);
        is(system(@clone, $bare->{git_dir}, $alt), 0, 'clone shared repo');
 
+       system(qw(git init --bare -q), "$v2/all.git") == 0 or die;
        for my $i (0..2) {
                is(system(@clone, $alt, "$v2/git/$i.git"), 0, "clone epoch $i");
        }