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>
Ævar Arnfjörð Bjarmason committed
Mar 15, 2019 at 16:59 UTC
a65bf78c4db0dda04ce726250ed84d23f109433f
1 file changed
+5
-8
t/t1410-reflog.sh
+5
-8
@@ -232,24 +232,21 @@ test_expect_success '--expire=never' '
232
'
233
234
test_expect_success 'gc.reflogexpire=never' '
235
+ test_config gc.reflogexpire never &&
236
+ test_config gc.reflogexpireunreachable never &&
237
236
- git config gc.reflogexpire never &&
237
- git config gc.reflogexpireunreachable never &&
238
git reflog expire --verbose --all &&
239
git reflog refs/heads/master >output &&
240
test_line_count = 4 output
241
'
242
243
test_expect_success 'gc.reflogexpire=false' '
244
+ test_config gc.reflogexpire false &&
245
+ test_config gc.reflogexpireunreachable false &&
246
245
- git config gc.reflogexpire false &&
246
- git config gc.reflogexpireunreachable false &&
247
git reflog expire --verbose --all &&
248
git reflog refs/heads/master >output &&
249
- test_line_count = 4 output &&
250
-
251
- git config --unset gc.reflogexpire &&
252
- git config --unset gc.reflogexpireunreachable
249
+ test_line_count = 4 output
250
251
'
252