Skip to content

Commit 67dc68b

Browse files
committed
t9210: pass safe.bareRepository=all to scalar register
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 <johannes.schindelin@gmx.de>
1 parent 1012967 commit 67dc68b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9210-scalar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ test_expect_success 'scalar enlistments need a worktree' '
8888
test_when_finished rm -rf bare test &&
8989
9090
git init --bare bare/src &&
91-
! scalar register bare/src 2>err &&
91+
! scalar -c safe.bareRepository=all register bare/src 2>err &&
9292
grep "Scalar enlistments require a worktree" err &&
9393
9494
git init test/src &&

0 commit comments

Comments
 (0)