summaryrefslogtreecommitdiff
path: root/contrib/scalar/t/t9099-scalar.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2021-12-03 13:34:26 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-04 21:52:24 -0800
commitcb59d55ec1c0b9e25d8a54efe4ce00b72ba62bc4 (patch)
tree36d78020b99ffe4df539f14fb85a60ad07d7416b /contrib/scalar/t/t9099-scalar.sh
parentscalar: implement the `run` command (diff)
downloadtgif-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-xcontrib/scalar/t/t9099-scalar.sh8
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