sparse-checkout: upgrade repository to version 1 when enabling extension
authorXin Li <delphij@google.com>
Fri, 5 Jun 2020 09:10:03 +0000 (02:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2020 17:13:30 +0000 (10:13 -0700)
commit98564d805938cae8b72687a9e39d65b00ac7ad27
tree78a12f098bdac401631df84dbf1c681b5d1991d7
parent01bbbbd9daaa277a95ae46e5a32f6fba026610ac
sparse-checkout: upgrade repository to version 1 when enabling extension

The 'extensions' configuration variable gets special meaning in the new
repository version, so when enabling the extension we should upgrade the
repository to version 1.

Signed-off-by: Xin Li <delphij@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/sparse-checkout.c
t/t2404-worktree-config.sh