diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2019-11-21 22:04:38 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-22 07:11:44 (GMT) |
commit | 72918c1ad91504f56c395cc91c5072651125662a (patch) | |
tree | 2b758a07f18725cfd47349a7e09d011b4f788dd1 /t/t1091-sparse-checkout-builtin.sh | |
parent | 7bffca95ea1ca4f55663374ea9b929b9df5be04b (diff) | |
download | git-72918c1ad91504f56c395cc91c5072651125662a.zip git-72918c1ad91504f56c395cc91c5072651125662a.tar.gz git-72918c1ad91504f56c395cc91c5072651125662a.tar.bz2 |
sparse-checkout: create 'disable' subcommand
The instructions for disabling a sparse-checkout to a full
working directory are complicated and non-intuitive. Add a
subcommand, 'git sparse-checkout disable', to perform those
steps for the user.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1091-sparse-checkout-builtin.sh')
-rwxr-xr-x | t/t1091-sparse-checkout-builtin.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t1091-sparse-checkout-builtin.sh b/t/t1091-sparse-checkout-builtin.sh index 07e73b4..c385c62 100755 --- a/t/t1091-sparse-checkout-builtin.sh +++ b/t/t1091-sparse-checkout-builtin.sh @@ -148,4 +148,19 @@ test_expect_success 'set sparse-checkout using --stdin' ' test_cmp expect dir ' +test_expect_success 'sparse-checkout disable' ' + git -C repo sparse-checkout disable && + test_path_is_missing repo/.git/info/sparse-checkout && + git -C repo config --list >config && + test_must_fail git config core.sparseCheckout && + ls repo >dir && + cat >expect <<-EOF && + a + deep + folder1 + folder2 + EOF + test_cmp expect dir +' + test_done |