t: prefer "git config --file" to GIT_CONFIG with test_must_fail

This lets us get rid of an extra "env" invocation in the middle, and is slightly more readable. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Mar 20, 2014 at 19:15 UTC 551a3e60d1cb9dca37a3a789cf1a4b94074ce6c5
1 file changed +4 -4
t/t1300-repo-config.sh
+4 -4
@@ -961,15 +961,15 @@ test_expect_success SYMLINKS 'symlinked configuration' '
961 '
962
963 test_expect_success 'nonexistent configuration' '
964 - test_must_fail env GIT_CONFIG=doesnotexist git config --list &&
965 - test_must_fail env GIT_CONFIG=doesnotexist git config test.xyzzy
964 + test_must_fail git config --file=doesnotexist --list &&
965 + test_must_fail git config --file=doesnotexist test.xyzzy
966 '
967
968 test_expect_success SYMLINKS 'symlink to nonexistent configuration' '
969 ln -s doesnotexist linktonada &&
970 ln -s linktonada linktolinktonada &&
971 - test_must_fail env GIT_CONFIG=linktonada git config --list &&
972 - test_must_fail env GIT_CONFIG=linktolinktonada git config --list
971 + test_must_fail git config --file=linktonada --list &&
972 + test_must_fail git config --file=linktolinktonada --list
973 '
974
975 test_expect_success 'check split_cmdline return' "