diff --git a/scalar.c b/scalar.c index 142672976c6584..3030202c9794d4 100644 --- a/scalar.c +++ b/scalar.c @@ -1098,6 +1098,9 @@ static int cmd_reconfigure(int argc, const char **argv) if (set_recommended_config(1) < 0) failed = -1; + if (toggle_maintenance(1) < 0) + failed = -1; + loop_end: if (failed) { res = failed; diff --git a/t/t9210-scalar.sh b/t/t9210-scalar.sh index 43c4208cdc31b1..b3d220f948b268 100755 --- a/t/t9210-scalar.sh +++ b/t/t9210-scalar.sh @@ -176,8 +176,9 @@ test_expect_success 'scalar reconfigure' ' scalar reconfigure one && test true = "$(git -C one/src config core.preloadIndex)" && git -C one/src config core.preloadIndex false && - scalar reconfigure -a && - test true = "$(git -C one/src config core.preloadIndex)" + GIT_TRACE2_EVENT="$(pwd)/reconfigure" scalar reconfigure -a && + test true = "$(git -C one/src config core.preloadIndex)" && + test_subcommand git maintenance start