Skip to content

Commit d7d300e

Browse files
davvidgitster
authored andcommitted
t7610-mergetool: use test_config to isolate tests
Signed-off-by: David Aguilar <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4756c05 commit d7d300e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

t/t7610-mergetool.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ test_expect_success 'custom mergetool' '
112112
'
113113

114114
test_expect_success 'mergetool crlf' '
115-
git config core.autocrlf true &&
115+
test_config core.autocrlf true &&
116116
git checkout -b test2 branch1 &&
117117
test_must_fail git merge master >/dev/null 2>&1 &&
118118
( yes "" | git mergetool file1 >/dev/null 2>&1 ) &&
@@ -505,14 +505,12 @@ test_expect_success 'file with no base' '
505505

506506
test_expect_success 'custom commands override built-ins' '
507507
git checkout -b test14 branch1 &&
508-
git config mergetool.defaults.cmd "cat \"\$REMOTE\" >\"\$MERGED\"" &&
509-
git config mergetool.defaults.trustExitCode true &&
508+
test_config mergetool.defaults.cmd "cat \"\$REMOTE\" >\"\$MERGED\"" &&
509+
test_config mergetool.defaults.trustExitCode true &&
510510
test_must_fail git merge master &&
511511
git mergetool --no-prompt --tool defaults -- both &&
512512
echo master both added >expected &&
513513
test_cmp both expected &&
514-
git config --unset mergetool.defaults.cmd &&
515-
git config --unset mergetool.defaults.trustExitCode &&
516514
git reset --hard master >/dev/null 2>&1
517515
'
518516

0 commit comments

Comments
 (0)