summaryrefslogtreecommitdiff
path: root/t/t7814-grep-recurse-submodules.sh
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2021-08-16 21:09:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-08 18:48:13 (GMT)
commit18a2f66d8a5514fec214613a75e6a238532d2664 (patch)
treeffec2f9de0b4b7613614bd9896f56250fadb4205 /t/t7814-grep-recurse-submodules.sh
parente3e8bf046e9682b0d67c07c6bc83ec9717d9c941 (diff)
downloadgit-18a2f66d8a5514fec214613a75e6a238532d2664.zip
git-18a2f66d8a5514fec214613a75e6a238532d2664.tar.gz
git-18a2f66d8a5514fec214613a75e6a238532d2664.tar.bz2
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 <jonathantanmy@google.com> Reviewed-by: Emily Shaffer <emilyshaffer@google.com> Reviewed-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7814-grep-recurse-submodules.sh')
-rwxr-xr-xt/t7814-grep-recurse-submodules.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t7814-grep-recurse-submodules.sh b/t/t7814-grep-recurse-submodules.sh
index 828cb3b..3172f5b 100755
--- a/t/t7814-grep-recurse-submodules.sh
+++ b/t/t7814-grep-recurse-submodules.sh
@@ -8,6 +8,9 @@ submodules.
. ./test-lib.sh
+GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB=1
+export GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB
+
test_expect_success 'setup directory structure and submodule' '
echo "(1|2)d(3|4)" >a &&
mkdir b &&