3 test_description
='rebase can handle submodules'
6 .
"$TEST_DIRECTORY"/lib-submodule-update.sh
7 .
"$TEST_DIRECTORY"/lib-rebase.sh
10 git status
-su >expect
&&
12 git checkout
-b ours HEAD
&&
15 git commit
-m add_x
&&
17 git status
-su >actual
&&
19 test_cmp expect actual
&&
23 test_submodule_switch
"git_rebase"
25 git_rebase_interactive
() {
26 git status
-su >expect
&&
28 git checkout
-b ours HEAD
&&
31 git commit
-m add_x
&&
33 git status
-su >actual
&&
35 test_cmp expect actual
&&
37 echo "fake-editor.sh" >.git
/info
/exclude
&&
41 KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR
=1
42 # The real reason "replace directory with submodule" fails is because a
43 # directory "sub1" exists, but we reuse the suppression added for merge here
44 test_submodule_switch
"git_rebase_interactive"