From: Johannes Schindelin via GitGitGadget Date: Sat, 04 Apr 2026 19:49:55 GMT Subject: [PATCH v2 15/17] t9210: pass `safe.bareRepository=all` to `scalar register` Message-ID: <00eaefbf621b96bd400577c4ab8e3ea96cc397f8.1775332197.git.gitgitgadget@gmail.com> In-Reply-To: From: Johannes Schindelin This test expects `scalar register` to discover a bare repo and reject it. Since `scalar` does not support `--git-dir` (that option would not make sense in the context of that command), pass `-c safe.bareRepository=all` to opt into implicit discovery of bare repositories, so the test keeps working once the default changes to `explicit`. Signed-off-by: Johannes Schindelin --- t/t9210-scalar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t9210-scalar.sh b/t/t9210-scalar.sh index 009437a5f3..54513c220b 100755 --- a/t/t9210-scalar.sh +++ b/t/t9210-scalar.sh @@ -88,7 +88,7 @@ test_expect_success 'scalar enlistments need a worktree' ' test_when_finished rm -rf bare test && git init --bare bare/src && - ! scalar register bare/src 2>err && + ! scalar -c safe.bareRepository=all register bare/src 2>err && grep "Scalar enlistments require a worktree" err && git init test/src && -- gitgitgadget