@@ -112,17 +112,17 @@ test_expect_success '[merge] summary/log configuration' '
112
112
Common #1
113
113
EOF
114
114
115
- git config merge.log true &&
116
- test_might_fail git config --unset-all merge.summary &&
115
+ test_config merge.log true &&
116
+ test_unconfig merge.summary &&
117
117
118
118
git checkout master &&
119
119
test_tick &&
120
120
git fetch . left &&
121
121
122
122
git fmt-merge-msg <.git/FETCH_HEAD >actual1 &&
123
123
124
- test_might_fail git config --unset-all merge.log &&
125
- git config merge.summary true &&
124
+ test_unconfig merge.log &&
125
+ test_config merge.summary true &&
126
126
127
127
git checkout master &&
128
128
test_tick &&
@@ -134,11 +134,6 @@ test_expect_success '[merge] summary/log configuration' '
134
134
test_cmp expected actual2
135
135
'
136
136
137
- test_expect_success ' setup: clear [merge] configuration' '
138
- test_might_fail git config --unset-all merge.log &&
139
- test_might_fail git config --unset-all merge.summary
140
- '
141
-
142
137
test_expect_success ' setup FETCH_HEAD' '
143
138
git checkout master &&
144
139
test_tick &&
@@ -248,14 +243,14 @@ test_expect_success 'fmt-merge-msg -m' '
248
243
Common #1
249
244
EOF
250
245
251
- test_might_fail git config --unset merge.log &&
252
- test_might_fail git config --unset merge.summary &&
246
+ test_unconfig merge.log &&
247
+ test_unconfig merge.summary &&
253
248
git checkout master &&
254
249
git fetch "$(pwd)" left &&
255
250
git fmt-merge-msg -m "Sync with left" <.git/FETCH_HEAD >actual &&
256
251
git fmt-merge-msg --log -m "Sync with left" \
257
252
<.git/FETCH_HEAD >actual.log &&
258
- git config merge.log true &&
253
+ test_config merge.log true &&
259
254
git fmt-merge-msg -m "Sync with left" \
260
255
<.git/FETCH_HEAD >actual.log-config &&
261
256
git fmt-merge-msg --no-log -m "Sync with left" \
@@ -290,29 +285,29 @@ test_expect_success 'setup: expected shortlog for two branches' '
290
285
'
291
286
292
287
test_expect_success ' shortlog for two branches' '
293
- git config merge.log true &&
294
- test_might_fail git config --unset-all merge.summary &&
288
+ test_config merge.log true &&
289
+ test_unconfig merge.summary &&
295
290
git checkout master &&
296
291
test_tick &&
297
292
git fetch . left right &&
298
293
git fmt-merge-msg <.git/FETCH_HEAD >actual1 &&
299
294
300
- test_might_fail git config --unset-all merge.log &&
301
- git config merge.summary true &&
295
+ test_unconfig merge.log &&
296
+ test_config merge.summary true &&
302
297
git checkout master &&
303
298
test_tick &&
304
299
git fetch . left right &&
305
300
git fmt-merge-msg <.git/FETCH_HEAD >actual2 &&
306
301
307
- git config merge.log yes &&
308
- test_might_fail git config --unset-all merge.summary &&
302
+ test_config merge.log yes &&
303
+ test_unconfig merge.summary &&
309
304
git checkout master &&
310
305
test_tick &&
311
306
git fetch . left right &&
312
307
git fmt-merge-msg <.git/FETCH_HEAD >actual3 &&
313
308
314
- test_might_fail git config --unset-all merge.log &&
315
- git config merge.summary yes &&
309
+ test_unconfig merge.log &&
310
+ test_config merge.summary yes &&
316
311
git checkout master &&
317
312
test_tick &&
318
313
git fetch . left right &&
@@ -325,8 +320,8 @@ test_expect_success 'shortlog for two branches' '
325
320
'
326
321
327
322
test_expect_success ' merge-msg -F' '
328
- test_might_fail git config --unset-all merge.log &&
329
- git config merge.summary yes &&
323
+ test_unconfig merge.log &&
324
+ test_config merge.summary yes &&
330
325
git checkout master &&
331
326
test_tick &&
332
327
git fetch . left right &&
@@ -335,8 +330,8 @@ test_expect_success 'merge-msg -F' '
335
330
'
336
331
337
332
test_expect_success ' merge-msg -F in subdirectory' '
338
- test_might_fail git config --unset-all merge.log &&
339
- git config merge.summary yes &&
333
+ test_unconfig merge.log &&
334
+ test_config merge.summary yes &&
340
335
git checkout master &&
341
336
test_tick &&
342
337
git fetch . left right &&
@@ -350,8 +345,8 @@ test_expect_success 'merge-msg -F in subdirectory' '
350
345
'
351
346
352
347
test_expect_success ' merge-msg with nothing to merge' '
353
- test_might_fail git config --unset-all merge.log &&
354
- git config merge.summary yes &&
348
+ test_unconfig merge.log &&
349
+ test_config merge.summary yes &&
355
350
356
351
>empty &&
357
352
@@ -376,8 +371,8 @@ test_expect_success 'merge-msg tag' '
376
371
Common #1
377
372
EOF
378
373
379
- test_might_fail git config --unset-all merge.log &&
380
- git config merge.summary yes &&
374
+ test_unconfig merge.log &&
375
+ test_config merge.summary yes &&
381
376
382
377
git checkout master &&
383
378
test_tick &&
@@ -406,8 +401,8 @@ test_expect_success 'merge-msg two tags' '
406
401
Common #1
407
402
EOF
408
403
409
- test_might_fail git config --unset-all merge.log &&
410
- git config merge.summary yes &&
404
+ test_unconfig merge.log &&
405
+ test_config merge.summary yes &&
411
406
412
407
git checkout master &&
413
408
test_tick &&
@@ -436,8 +431,8 @@ test_expect_success 'merge-msg tag and branch' '
436
431
Common #1
437
432
EOF
438
433
439
- test_might_fail git config --unset-all merge.log &&
440
- git config merge.summary yes &&
434
+ test_unconfig merge.log &&
435
+ test_config merge.summary yes &&
441
436
442
437
git checkout master &&
443
438
test_tick &&
@@ -464,6 +459,8 @@ test_expect_success 'merge-msg lots of commits' '
464
459
echo " ..."
465
460
} >expected &&
466
461
462
+ test_config merge.summary yes &&
463
+
467
464
git checkout master &&
468
465
test_tick &&
469
466
git fetch . long &&
0 commit comments