t4304: use test_config to set/unset git config variables
commitaac6c2f4bcea6bd371ef8b25edb991673a14d5b3
authorYann Droneaud <ydroneaud@opteya.com>
Sun, 24 Mar 2013 21:06:04 +0000 (24 22:06 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2013 15:50:53 +0000 (25 08:50 -0700)
tree0535dc3cc28a8b7275a639871dc0602196d731bd
parent55adef06506b27c3f8d9e16c77bdf4e2e83678e9
t4304: 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.

Tests are modified to assume correct (default) configuration at entry,
and to reset the modified configuration variables at the end.

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