mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
aa06180ac9
Since all invocations of test_submodule_forced_switch() are git commands, automatically prepend "git" before invoking test_submodule_switch_common(). Similarly, many invocations of test_submodule_switch() are also git commands so automatically prepend "git" before invoking test_submodule_switch_common() as well. Finally, for invocations of test_submodule_switch() that invoke a custom function, rename the old function to test_submodule_switch_func(). This is necessary because in a future commit, we will be adding some logic that needs to distinguish between an invocation of a plain git comamnd and an invocation of a test helper function. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 lines
434 B
Bash
Executable file
19 lines
434 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='merge can handle submodules'
|
|
|
|
. ./test-lib.sh
|
|
. "$TEST_DIRECTORY"/lib-submodule-update.sh
|
|
|
|
# merges without conflicts
|
|
test_submodule_switch "merge"
|
|
|
|
test_submodule_switch "merge --ff"
|
|
|
|
test_submodule_switch "merge --ff-only"
|
|
|
|
KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR=1
|
|
KNOWN_FAILURE_NOFF_MERGE_ATTEMPTS_TO_MERGE_REMOVED_SUBMODULE_FILES=1
|
|
test_submodule_switch "merge --no-ff"
|
|
|
|
test_done
|