2020-01-12 00:36:56 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
test_description='merge can handle submodules'
|
|
|
|
|
|
|
|
. ./test-lib.sh
|
|
|
|
. "$TEST_DIRECTORY"/lib-submodule-update.sh
|
|
|
|
|
|
|
|
# merges without conflicts
|
2020-11-21 19:20:35 +01:00
|
|
|
test_submodule_switch "merge"
|
2020-01-12 00:36:56 +01:00
|
|
|
|
2020-11-21 19:20:35 +01:00
|
|
|
test_submodule_switch "merge --ff"
|
2020-01-12 00:36:56 +01:00
|
|
|
|
2020-11-21 19:20:35 +01:00
|
|
|
test_submodule_switch "merge --ff-only"
|
2020-01-12 00:36:56 +01:00
|
|
|
|
|
|
|
KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR=1
|
|
|
|
KNOWN_FAILURE_NOFF_MERGE_ATTEMPTS_TO_MERGE_REMOVED_SUBMODULE_FILES=1
|
2020-11-21 19:20:35 +01:00
|
|
|
test_submodule_switch "merge --no-ff"
|
2020-01-12 00:36:56 +01:00
|
|
|
|
|
|
|
test_done
|