3 test_description
='git apply handling submodules'
5 TEST_PASSES_SANITIZE_LEAK
=true
7 .
"$TEST_DIRECTORY"/lib-submodule-update.sh
10 git
diff --ignore-submodules=dirty
"..$1" >diff &&
11 may_only_be_test_must_fail
"$2" &&
12 $2 git apply
--index diff
15 test_submodule_switch_func
"apply_index"
18 git
diff --ignore-submodules=dirty
"..$1" >diff &&
19 may_only_be_test_must_fail
"$2" &&
20 $2 git apply
--3way diff
23 test_submodule_switch_func
"apply_3way"