t7610: don't use test_config in a subshell
test_config uses test_when_finished to reset the configuration after the test, but this does not work inside a subshell. This does not cause a problem here because the first thing the next test does is to set this config variable itself, but we are about to add a check that will complain when test_when_finished is used in a subshell. In this case, "subdir" not a submodule so test_config has the same effect when run at the top level and can simply be moved out of the subshell. Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
John Keeping committed
Sep 5, 2015 at 14:12 UTC
1a9a23e35c1ba75187ee600fb7a1f107a2fb1893
1 file changed
+1
-1
t/t7610-mergetool.sh
+1
-1
@@ -174,9 +174,9 @@ test_expect_success 'mergetool skips autoresolved' '
174
'
175
176
test_expect_success 'mergetool merges all from subdir' '
177
+ test_config rerere.enabled false &&
178
(
179
cd subdir &&
179
- test_config rerere.enabled false &&
180
test_must_fail git merge master &&
181
( yes "r" | git mergetool ../submod ) &&
182
( yes "d" "d" | git mergetool --no-prompt ) &&