reflog tests: make use of "test_config" idiom
Change a couple of tests that weren't using the helper to use it. This makes the trailing "--unset" unnecessary. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
cd8eb3a094
commit
a65bf78c4d
@ -232,24 +232,21 @@ test_expect_success '--expire=never' '
|
||||
'
|
||||
|
||||
test_expect_success 'gc.reflogexpire=never' '
|
||||
test_config gc.reflogexpire never &&
|
||||
test_config gc.reflogexpireunreachable never &&
|
||||
|
||||
git config gc.reflogexpire never &&
|
||||
git config gc.reflogexpireunreachable never &&
|
||||
git reflog expire --verbose --all &&
|
||||
git reflog refs/heads/master >output &&
|
||||
test_line_count = 4 output
|
||||
'
|
||||
|
||||
test_expect_success 'gc.reflogexpire=false' '
|
||||
test_config gc.reflogexpire false &&
|
||||
test_config gc.reflogexpireunreachable false &&
|
||||
|
||||
git config gc.reflogexpire false &&
|
||||
git config gc.reflogexpireunreachable false &&
|
||||
git reflog expire --verbose --all &&
|
||||
git reflog refs/heads/master >output &&
|
||||
test_line_count = 4 output &&
|
||||
|
||||
git config --unset gc.reflogexpire &&
|
||||
git config --unset gc.reflogexpireunreachable
|
||||
test_line_count = 4 output
|
||||
|
||||
'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user