Skip to content

Commit

Permalink
Merge branch 'rs/p5302-create-repositories-before-tests'
Browse files Browse the repository at this point in the history
Adjust a perf test to new world order where commands that do
require a repository are really strict about having a repository.

* rs/p5302-create-repositories-before-tests:
  p5302: create repositories for index-pack results explicitly
  • Loading branch information
gitster committed Feb 10, 2017
2 parents 65fecf0 + c86000c commit cf36a4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/perf/p5302-pack-index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ test_expect_success 'repack' '
export PACK
'

test_expect_success 'create target repositories' '
for repo in t1 t2 t3 t4 t5 t6
do
git init --bare $repo
done
'

test_perf 'index-pack 0 threads' '
GIT_DIR=t1 git index-pack --threads=1 --stdin < $PACK
'
Expand Down

0 comments on commit cf36a4d

Please sign in to comment.