Skip to content

Commit 18a2f66

Browse files
jonathantanmygitster
authored andcommitted
t7814: show lack of alternate ODB-adding
The previous patches have made "git grep" no longer need to add submodule ODBs as alternates, at least for the code paths tested in t7814. Demonstrate this by making adding a submodule ODB as an alternate fatal in this test. Signed-off-by: Jonathan Tan <[email protected]> Reviewed-by: Emily Shaffer <[email protected]> Reviewed-by: Matheus Tavares <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e3e8bf0 commit 18a2f66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/t7814-grep-recurse-submodules.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ submodules.
88

99
. ./test-lib.sh
1010

11+
GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB=1
12+
export GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB
13+
1114
test_expect_success 'setup directory structure and submodule' '
1215
echo "(1|2)d(3|4)" >a &&
1316
mkdir b &&

0 commit comments

Comments
 (0)