t1091: make some tests a little more defensive against failures
Reviewed-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
fa0bde45cd
commit
72064ee578
@ -278,6 +278,7 @@ test_expect_success 'cone mode: add parent path' '
|
||||
'
|
||||
|
||||
test_expect_success 'revert to old sparse-checkout on bad update' '
|
||||
test_when_finished git -C repo sparse-checkout disable &&
|
||||
test_when_finished git -C repo reset --hard &&
|
||||
git -C repo sparse-checkout set deep &&
|
||||
echo update >repo/deep/deeper2/a &&
|
||||
@ -328,6 +329,7 @@ test_expect_success 'sparse-checkout (init|set|disable) fails with dirty status'
|
||||
'
|
||||
|
||||
test_expect_success 'cone mode: set with core.ignoreCase=true' '
|
||||
rm repo/.git/info/sparse-checkout &&
|
||||
git -C repo sparse-checkout init --cone &&
|
||||
git -C repo -c core.ignoreCase=true sparse-checkout set folder1 &&
|
||||
cat >expect <<-\EOF &&
|
||||
|
Loading…
Reference in New Issue
Block a user