1#!/bin/sh
23
test_description='git apply handling submodules'
45
. ./test-lib.sh
6. "$TEST_DIRECTORY"/lib-submodule-update.sh
78
apply_index () {
9git diff --ignore-submodules=dirty "..$1" | git apply --index -
10}
1112
test_submodule_switch "apply_index"
1314
apply_3way () {
15git diff --ignore-submodules=dirty "..$1" | git apply --3way -
16}
1718
test_submodule_switch "apply_3way"
1920
test_done