Git fork

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>

authored by

Jeff King and committed by
Junio C Hamano
551a3e60 3cc6a6f0

+4 -4
+4 -4
t/t1300-repo-config.sh
··· 961 961 ' 962 962 963 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 966 ' 967 967 968 968 test_expect_success SYMLINKS 'symlink to nonexistent configuration' ' 969 969 ln -s doesnotexist linktonada && 970 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 973 ' 974 974 975 975 test_expect_success 'check split_cmdline return' "