summaryrefslogtreecommitdiff
path: root/t/t3705-add-sparse-checkout.sh
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2022-04-22 02:32:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-04-22 06:12:38 (GMT)
commitdde1358970ab9ddafb9f664baadeddde1e9e7842 (patch)
tree12e36b1ef751e3a65656cc4239f4da6cd0b1daf6 /t/t3705-add-sparse-checkout.sh
parent1a4874565fa3b6668042216189551b98b4dc0b1b (diff)
downloadgit-dde1358970ab9ddafb9f664baadeddde1e9e7842.zip
git-dde1358970ab9ddafb9f664baadeddde1e9e7842.tar.gz
git-dde1358970ab9ddafb9f664baadeddde1e9e7842.tar.bz2
tests: stop assuming --no-cone is the default mode for sparse-checkout
Add an explicit --no-cone to several sparse-checkout invocations in preparation for changing the default to cone mode. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3705-add-sparse-checkout.sh')
-rwxr-xr-xt/t3705-add-sparse-checkout.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t3705-add-sparse-checkout.sh b/t/t3705-add-sparse-checkout.sh
index 9560904..2bade9e 100755
--- a/t/t3705-add-sparse-checkout.sh
+++ b/t/t3705-add-sparse-checkout.sh
@@ -166,7 +166,7 @@ test_expect_success 'do not warn when pathspec matches dense entries' '
test_expect_success 'git add fails outside of sparse-checkout definition' '
test_when_finished git sparse-checkout disable &&
test_commit a &&
- git sparse-checkout init &&
+ git sparse-checkout init --no-cone &&
git sparse-checkout set a &&
echo >>sparse_entry &&
@@ -208,7 +208,7 @@ test_expect_success 'add obeys advice.updateSparsePath' '
'
test_expect_success 'add allows sparse entries with --sparse' '
- git sparse-checkout set a &&
+ git sparse-checkout set --no-cone a &&
echo modified >sparse_entry &&
test_must_fail git add sparse_entry &&
test_sparse_entry_unchanged &&