Navigation Menu

Skip to content

Commit

Permalink
t7814: show lack of alternate ODB-adding
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jonathantanmy authored and gitster committed Sep 8, 2021
1 parent e3e8bf0 commit 18a2f66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/t7814-grep-recurse-submodules.sh
Expand Up @@ -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 &&
Expand Down

0 comments on commit 18a2f66

Please sign in to comment.