diff options
author | Yann Droneaud <ydroneaud@opteya.com> | 2013-03-24 22:06:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-25 08:50:53 -0700 |
commit | 90e76b7029d02314b6f8f8470788874fc44fa621 (patch) | |
tree | 2d5743c3ac002a7977c3c52caf31d257f09b9302 /t/t4013/diff.diff_--patch-with-stat_initial..side | |
parent | t4034: use test_config/test_unconfig to set/unset git config variables (diff) | |
download | tgif-90e76b7029d02314b6f8f8470788874fc44fa621.tar.xz |
t4202: use test_config/test_unconfig 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.
Additionally, instead of
git config <key> ""
or
git config --unset <key>
uses
test_unconfig <key>
The latter doesn't failed if <key> is not defined.
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>
Diffstat (limited to 't/t4013/diff.diff_--patch-with-stat_initial..side')
0 files changed, 0 insertions, 0 deletions