@ -184,7 +184,7 @@ test_expect_success 'mergetool in subdir' '
test_expect_success 'mergetool on file in parent dir' '
test_expect_success 'mergetool on file in parent dir' '
test_when_finished "git reset --hard" &&
test_when_finished "git reset --hard" &&
git checkout -b test$test_count &&
git checkout -b test$test_count branch1 &&
git submodule update -N &&
git submodule update -N &&
(
(
cd subdir &&
cd subdir &&
@ -218,7 +218,7 @@ test_expect_success 'mergetool skips autoresolved' '
test_expect_success 'mergetool merges all from subdir' '
test_expect_success 'mergetool merges all from subdir' '
test_when_finished "git reset --hard" &&
test_when_finished "git reset --hard" &&
git checkout -b test$test_count &&
git checkout -b test$test_count branch1 &&
test_config rerere.enabled false &&
test_config rerere.enabled false &&
(
(
cd subdir &&
cd subdir &&
@ -306,7 +306,7 @@ test_expect_success 'mergetool delete/delete conflict' '
test_expect_success 'mergetool produces no errors when keepBackup is used' '
test_expect_success 'mergetool produces no errors when keepBackup is used' '
test_when_finished "git reset --hard HEAD" &&
test_when_finished "git reset --hard HEAD" &&
git checkout -b test$test_count &&
git checkout -b test$test_count move-to-c &&
test_config mergetool.keepBackup true &&
test_config mergetool.keepBackup true &&
test_must_fail git merge move-to-b &&
test_must_fail git merge move-to-b &&
: >expect &&
: >expect &&
@ -317,7 +317,7 @@ test_expect_success 'mergetool produces no errors when keepBackup is used' '
test_expect_success 'mergetool honors tempfile config for deleted files' '
test_expect_success 'mergetool honors tempfile config for deleted files' '
test_when_finished "git reset --hard HEAD" &&
test_when_finished "git reset --hard HEAD" &&
git checkout -b test$test_count &&
git checkout -b test$test_count move-to-c &&
test_config mergetool.keepTemporaries false &&
test_config mergetool.keepTemporaries false &&
test_must_fail git merge move-to-b &&
test_must_fail git merge move-to-b &&
echo d | git mergetool a/a/file.txt &&
echo d | git mergetool a/a/file.txt &&
@ -327,7 +327,7 @@ test_expect_success 'mergetool honors tempfile config for deleted files' '
test_expect_success 'mergetool keeps tempfiles when aborting delete/delete' '
test_expect_success 'mergetool keeps tempfiles when aborting delete/delete' '
test_when_finished "git reset --hard HEAD" &&
test_when_finished "git reset --hard HEAD" &&
test_when_finished "git clean -fdx" &&
test_when_finished "git clean -fdx" &&
git checkout -b test$test_count &&
git checkout -b test$test_count move-to-c &&
test_config mergetool.keepTemporaries true &&
test_config mergetool.keepTemporaries true &&
test_must_fail git merge move-to-b &&
test_must_fail git merge move-to-b &&
! (echo a; echo n) | git mergetool a/a/file.txt &&
! (echo a; echo n) | git mergetool a/a/file.txt &&
@ -664,7 +664,7 @@ test_expect_success 'diff.orderFile configuration is honored' '
'
'
test_expect_success 'mergetool -Oorder-file is honored' '
test_expect_success 'mergetool -Oorder-file is honored' '
test_when_finished "git reset --hard >/dev/null 2>&1" &&
test_when_finished "git reset --hard >/dev/null 2>&1" &&
git checkout -b test$test_count &&
git checkout -b test$test_count order-file-side2 &&
test_config diff.orderFile order-file &&
test_config diff.orderFile order-file &&
test_config mergetool.myecho.cmd "echo \"\$LOCAL\"" &&
test_config mergetool.myecho.cmd "echo \"\$LOCAL\"" &&
test_config mergetool.myecho.trustExitCode true &&
test_config mergetool.myecho.trustExitCode true &&