diff options
author | Derrick Stolee <derrickstolee@github.com> | 2022-05-23 16:48:38 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-23 21:08:20 +0300 |
commit | 8846847a142d720f63b5cbf9f0481c7694445ace (patch) | |
tree | b05cea75a1d346f2bcee6054e49481e4978947a0 /sparse-index.c | |
parent | baa73e2b75645a088268266a408f502457663876 (diff) |
t1092: stress test 'git sparse-checkout set'
The 'sparse-index contents' test checks that the sparse index has the
correct set of sparse directories in the index after modifying the cone
mode patterns using 'git sparse-checkout set'. Add to the coverage here
by adding more complicated scenarios that were not previously tested.
In order to check paths that do not exist at HEAD, we need to modify the
test_sparse_checkout_set helper slightly:
1. Add the --skip-checks argument to the 'set' command to avoid failures
when passing paths that do not exist at HEAD.
2. When looking for the non-existence of sparse directories for the
paths in $CONE_DIRS, allow the rev-list command to fail because the
path does not exist at HEAD.
This allows us to add some interesting test cases.
Helped-by: Victoria Dye <vdye@github.com>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sparse-index.c')
0 files changed, 0 insertions, 0 deletions