diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-12-03 13:34:26 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-04 21:52:24 -0800 |
commit | cb59d55ec1c0b9e25d8a54efe4ce00b72ba62bc4 (patch) | |
tree | 36d78020b99ffe4df539f14fb85a60ad07d7416b /contrib/scalar/t/t9099-scalar.sh | |
parent | scalar: implement the `run` command (diff) | |
download | tgif-cb59d55ec1c0b9e25d8a54efe4ce00b72ba62bc4.tar.xz |
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>
Diffstat (limited to 'contrib/scalar/t/t9099-scalar.sh')
-rwxr-xr-x | contrib/scalar/t/t9099-scalar.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/scalar/t/t9099-scalar.sh b/contrib/scalar/t/t9099-scalar.sh index f60e086d6f..fb5e2efee0 100755 --- a/contrib/scalar/t/t9099-scalar.sh +++ b/contrib/scalar/t/t9099-scalar.sh @@ -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 |