p5302: create repositories for index-pack results explicitly

Before 7176a314 (index-pack: complain when --stdin is used outside of a repo) index-pack silently created a non-existing target directory; now the command refuses to work unless it's used against a valid repository. That causes p5302 to fail, which relies on the former behavior. Fix it by setting up the destinations for its performance tests using git init. Signed-off-by: Rene Scharfe <l.s.r@web.de> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Feb 5, 2017 at 12:43 UTC c86000c1a7499541221fe087514299579895e807
1 file changed +7
t/perf/p5302-pack-index.sh
+7
@@ -13,6 +13,13 @@ test_expect_success 'repack' '
13 export PACK
14 '
15
16 +test_expect_success 'create target repositories' '
17 + for repo in t1 t2 t3 t4 t5 t6
18 + do
19 + git init --bare $repo
20 + done
21 +'
22 +
23 test_perf 'index-pack 0 threads' '
24 GIT_DIR=t1 git index-pack --threads=1 --stdin < $PACK
25 '