@@ -367,7 +367,7 @@ test_expect_success 'submodule update continues after checkout error' '
367
367
git submodule init &&
368
368
git commit -am "new_submodule" &&
369
369
(cd submodule2 &&
370
- git rev-parse --max-count=1 HEAD > ../expect
370
+ git rev-parse --verify HEAD >../expect
371
371
) &&
372
372
(cd submodule &&
373
373
test_commit "update_submodule" file
@@ -384,7 +384,7 @@ test_expect_success 'submodule update continues after checkout error' '
384
384
git checkout HEAD^ &&
385
385
test_must_fail git submodule update &&
386
386
(cd submodule2 &&
387
- git rev-parse --max-count=1 HEAD > ../actual
387
+ git rev-parse --verify HEAD >../actual
388
388
) &&
389
389
test_cmp expect actual
390
390
)
@@ -413,7 +413,7 @@ test_expect_success 'submodule update continues after recursive checkout error'
413
413
test_commit "update_submodule_again_again" file
414
414
) &&
415
415
(cd submodule2 &&
416
- git rev-parse --max-count=1 HEAD > ../expect &&
416
+ git rev-parse --verify HEAD >../expect &&
417
417
test_commit "update_submodule2_again" file
418
418
) &&
419
419
git add submodule &&
@@ -428,7 +428,7 @@ test_expect_success 'submodule update continues after recursive checkout error'
428
428
) &&
429
429
test_must_fail git submodule update --recursive &&
430
430
(cd submodule2 &&
431
- git rev-parse --max-count=1 HEAD > ../actual
431
+ git rev-parse --verify HEAD >../actual
432
432
) &&
433
433
test_cmp expect actual
434
434
)
@@ -460,12 +460,12 @@ test_expect_success 'submodule update exit immediately in case of merge conflict
460
460
) &&
461
461
git checkout HEAD^ &&
462
462
(cd submodule2 &&
463
- git rev-parse --max-count=1 HEAD > ../expect
463
+ git rev-parse --verify HEAD >../expect
464
464
) &&
465
465
git config submodule.submodule.update merge &&
466
466
test_must_fail git submodule update &&
467
467
(cd submodule2 &&
468
- git rev-parse --max-count=1 HEAD > ../actual
468
+ git rev-parse --verify HEAD >../actual
469
469
) &&
470
470
test_cmp expect actual
471
471
)
@@ -495,12 +495,12 @@ test_expect_success 'submodule update exit immediately after recursive rebase er
495
495
) &&
496
496
git checkout HEAD^ &&
497
497
(cd submodule2 &&
498
- git rev-parse --max-count=1 HEAD > ../expect
498
+ git rev-parse --verify HEAD >../expect
499
499
) &&
500
500
git config submodule.submodule.update rebase &&
501
501
test_must_fail git submodule update &&
502
502
(cd submodule2 &&
503
- git rev-parse --max-count=1 HEAD > ../actual
503
+ git rev-parse --verify HEAD >../actual
504
504
) &&
505
505
test_cmp expect actual
506
506
)
0 commit comments