author | Jeff King <peff@peff.net> | |
Wed, 12 Oct 2011 18:29:20 +0000 (14:29 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 12 Oct 2011 18:53:31 +0000 (11:53 -0700) | ||
commit | 5a953fc5d1df1fabb5b8ce9f3c884c424ef4f89a | |
tree | af4f3bcc998aaf9274128dc3f9e19a862105055e | tree | snapshot |
parent | 703f05ad5835cff92b12c29aecf8d724c8c847e2 | commit | diff |
t1300: put git invocations inside test function
This is a very old script, and did a lot of:
echo whatever >expect
git config foo bar
test_expect_success 'cmp .git/config expect'
which meant that we didn't actually check that the call to
git-config succeeded. Fix this, and while we're at it,
modernize the style to use test_cmp.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This is a very old script, and did a lot of:
echo whatever >expect
git config foo bar
test_expect_success 'cmp .git/config expect'
which meant that we didn't actually check that the call to
git-config succeeded. Fix this, and while we're at it,
modernize the style to use test_cmp.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1300-repo-config.sh | diff | blob | history |