From 39ac2f20f40c202b9ef0278c477cd4ba91573163 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 26 Dec 2019 06:48:02 +0000 Subject: t/www_listing: quiet down stderr in -httpd 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 | 1 + 1 file changed, 1 insertion(+) (limited to 't') diff --git a/t/www_listing.t b/t/www_listing.t index 4fcb43ea..2ff053de 100644 --- a/t/www_listing.t +++ b/t/www_listing.t @@ -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"); } -- cgit v1.2.3-24-ge0c7