diff options
author | Elijah Newren <newren@gmail.com> | 2022-04-22 04:32:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-04-22 08:12:38 +0200 |
commit | dde1358970ab9ddafb9f664baadeddde1e9e7842 (patch) | |
tree | 12e36b1ef751e3a65656cc4239f4da6cd0b1daf6 /t/t3602-rm-sparse-checkout.sh | |
parent | The tenth batch (diff) | |
download | git-dde1358970ab9ddafb9f664baadeddde1e9e7842.tar.xz git-dde1358970ab9ddafb9f664baadeddde1e9e7842.zip |
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/t3602-rm-sparse-checkout.sh')
-rwxr-xr-x | t/t3602-rm-sparse-checkout.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t3602-rm-sparse-checkout.sh b/t/t3602-rm-sparse-checkout.sh index 034ec01091..08580fd3dc 100755 --- a/t/t3602-rm-sparse-checkout.sh +++ b/t/t3602-rm-sparse-checkout.sh @@ -30,7 +30,7 @@ test_expect_success 'setup' " for opt in "" -f --dry-run do test_expect_success "rm${opt:+ $opt} does not remove sparse entries" ' - git sparse-checkout set a && + git sparse-checkout set --no-cone a && test_must_fail git rm $opt b 2>stderr && test_cmp b_error_and_hint stderr && git ls-files --error-unmatch b @@ -118,7 +118,7 @@ test_expect_success 'can remove files from non-sparse dir' ' test_commit w/f && test_commit x/y/f && - git sparse-checkout set w !/x y/ && + git sparse-checkout set --no-cone w !/x y/ && git rm w/f.t x/y/f.t 2>stderr && test_must_be_empty stderr ' @@ -128,7 +128,7 @@ test_expect_success 'refuse to remove non-skip-worktree file from sparse dir' ' git sparse-checkout disable && mkdir -p x/y/z && test_commit x/y/z/f && - git sparse-checkout set !/x y/ !x/y/z && + git sparse-checkout set --no-cone !/x y/ !x/y/z && git update-index --no-skip-worktree x/y/z/f.t && test_must_fail git rm x/y/z/f.t 2>stderr && |