scalar: allow reconfiguring an existing enlistment

This comes in handy during Scalar upgrades, or when config settings were
messed up by mistake.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Schindelin
2021-12-03 13:34:26 +00:00
committed by Junio C Hamano
parent 7020c88c30
commit cb59d55ec1
3 changed files with 67 additions and 28 deletions

View File

@ -65,4 +65,12 @@ test_expect_success 'scalar clone' '
)
'
test_expect_success 'scalar reconfigure' '
git init one/src &&
scalar register one &&
git -C one/src config core.preloadIndex false &&
scalar reconfigure one &&
test true = "$(git -C one/src config core.preloadIndex)"
'
test_done