| 1 | #!/bin/sh |
| 2 | |
| 3 | test_description='read-tree can handle submodules' |
| 4 | |
| 5 | . ./test-lib.sh |
| 6 | . "$TEST_DIRECTORY"/lib-submodule-update.sh |
| 7 | |
| 8 | KNOWN_FAILURE_DIRECTORY_SUBMODULE_CONFLICTS=1 |
| 9 | |
| 10 | test_submodule_switch_recursing_with_args "read-tree -u -m" |
| 11 | |
| 12 | test_submodule_forced_switch_recursing_with_args "read-tree -u --reset" |
| 13 | |
| 14 | test_submodule_switch "read-tree -u -m" |
| 15 | |
| 16 | test_submodule_forced_switch "read-tree -u --reset" |
| 17 | |
| 18 | test_done |