2014-06-15 19:01:41 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
test_description='merge can handle submodules'
|
|
|
|
|
|
|
|
. ./test-lib.sh
|
|
|
|
. "$TEST_DIRECTORY"/lib-submodule-update.sh
|
|
|
|
|
|
|
|
# merges without conflicts
|
2020-06-11 19:41:49 +02:00
|
|
|
test_submodule_switch "merge"
|
2014-06-15 19:01:41 +02:00
|
|
|
|
2020-06-11 19:41:49 +02:00
|
|
|
test_submodule_switch "merge --ff"
|
2014-06-15 19:01:41 +02:00
|
|
|
|
2020-06-11 19:41:49 +02:00
|
|
|
test_submodule_switch "merge --ff-only"
|
2014-06-15 19:01:41 +02:00
|
|
|
|
|
|
|
KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR=1
|
|
|
|
KNOWN_FAILURE_NOFF_MERGE_ATTEMPTS_TO_MERGE_REMOVED_SUBMODULE_FILES=1
|
2020-06-11 19:41:49 +02:00
|
|
|
test_submodule_switch "merge --no-ff"
|
2014-06-15 19:01:41 +02:00
|
|
|
|
|
|
|
test_done
|