Skip to content

Commit

Permalink
p2000: explicitly turn off sparse index
Browse files Browse the repository at this point in the history
The full index test cases in p2000-sparse-operations.sh relied on the
fact that the sparse index was off by default. When this default was
flipped, the performance test was not altered. Do so now with the
--no-sparse-index flag.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
  • Loading branch information
derrickstolee authored and ldennington committed Jan 20, 2022
1 parent 8025cd7 commit 8490b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/perf/p2000-sparse-operations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test_expect_success 'setup repo and indexes' '
git -c core.sparseCheckoutCone=true clone --branch=wide --sparse . full-v3 &&
(
cd full-v3 &&
git sparse-checkout init --cone &&
git sparse-checkout init --cone --no-sparse-index &&
git sparse-checkout set $SPARSE_CONE &&
git config index.version 3 &&
git update-index --index-version=3 &&
Expand All @@ -64,7 +64,7 @@ test_expect_success 'setup repo and indexes' '
git -c core.sparseCheckoutCone=true clone --branch=wide --sparse . full-v4 &&
(
cd full-v4 &&
git sparse-checkout init --cone &&
git sparse-checkout init --cone --no-sparse-index &&
git sparse-checkout set $SPARSE_CONE &&
git config index.version 4 &&
git update-index --index-version=4 &&
Expand Down

0 comments on commit 8490b62

Please sign in to comment.