t7502: use test_config to set/unset git config variables
commit464be6307c898ff314c723626b5ee61387dab9b4
authorYann Droneaud <ydroneaud@opteya.com>
Sun, 24 Mar 2013 21:06:10 +0000 (24 22:06 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2013 15:50:54 +0000 (25 08:50 -0700)
tree8c4c13d7f74a8a428d90e4e8c44e35ba12c5793c
parent5d76ef25d9fedd46c9409af00953c7e8d31ce2ae
t7502: use test_config to set/unset git config variables

Instead of using construct such as:
    test_when_finished "git config --unset <key>"
    git config <key> <value>
uses
    test_config <key> <value>
The latter takes care of removing <key> at the end of the test.

Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7502-commit.sh