@@ -622,7 +622,7 @@ test_expect_success 'stdin fails create with no ref' '
622622test_expect_success ' stdin fails create with no new value' '
623623 echo "create $a" >stdin &&
624624 test_must_fail git update-ref --stdin <stdin 2>err &&
625- grep "fatal: create $a: missing <newvalue >" err
625+ grep "fatal: create $a: missing <new-oid >" err
626626'
627627
628628test_expect_success ' stdin fails create with too many arguments' '
@@ -640,7 +640,7 @@ test_expect_success 'stdin fails update with no ref' '
640640test_expect_success ' stdin fails update with no new value' '
641641 echo "update $a" >stdin &&
642642 test_must_fail git update-ref --stdin <stdin 2>err &&
643- grep "fatal: update $a: missing <newvalue >" err
643+ grep "fatal: update $a: missing <new-oid >" err
644644'
645645
646646test_expect_success ' stdin fails update with too many arguments' '
@@ -765,21 +765,21 @@ test_expect_success 'stdin update ref fails with wrong old value' '
765765test_expect_success ' stdin update ref fails with bad old value' '
766766 echo "update $c $m does-not-exist" >stdin &&
767767 test_must_fail git update-ref --stdin <stdin 2>err &&
768- grep "fatal: update $c: invalid <oldvalue >: does-not-exist" err &&
768+ grep "fatal: update $c: invalid <old-oid >: does-not-exist" err &&
769769 test_must_fail git rev-parse --verify -q $c
770770'
771771
772772test_expect_success ' stdin create ref fails with bad new value' '
773773 echo "create $c does-not-exist" >stdin &&
774774 test_must_fail git update-ref --stdin <stdin 2>err &&
775- grep "fatal: create $c: invalid <newvalue >: does-not-exist" err &&
775+ grep "fatal: create $c: invalid <new-oid >: does-not-exist" err &&
776776 test_must_fail git rev-parse --verify -q $c
777777'
778778
779779test_expect_success ' stdin create ref fails with zero new value' '
780780 echo "create $c " >stdin &&
781781 test_must_fail git update-ref --stdin <stdin 2>err &&
782- grep "fatal: create $c: zero <newvalue >" err &&
782+ grep "fatal: create $c: zero <new-oid >" err &&
783783 test_must_fail git rev-parse --verify -q $c
784784'
785785
@@ -803,7 +803,7 @@ test_expect_success 'stdin delete ref fails with wrong old value' '
803803test_expect_success ' stdin delete ref fails with zero old value' '
804804 echo "delete $a " >stdin &&
805805 test_must_fail git update-ref --stdin <stdin 2>err &&
806- grep "fatal: delete $a: zero <oldvalue >" err &&
806+ grep "fatal: delete $a: zero <old-oid >" err &&
807807 git rev-parse $m >expect &&
808808 git rev-parse $a >actual &&
809809 test_cmp expect actual
@@ -1027,7 +1027,7 @@ test_expect_success 'stdin -z fails create with no ref' '
10271027test_expect_success ' stdin -z fails create with no new value' '
10281028 printf $F "create $a" >stdin &&
10291029 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1030- grep "fatal: create $a: unexpected end of input when reading <newvalue >" err
1030+ grep "fatal: create $a: unexpected end of input when reading <new-oid >" err
10311031'
10321032
10331033test_expect_success ' stdin -z fails create with too many arguments' '
@@ -1045,27 +1045,27 @@ test_expect_success 'stdin -z fails update with no ref' '
10451045test_expect_success ' stdin -z fails update with too few args' '
10461046 printf $F "update $a" "$m" >stdin &&
10471047 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1048- grep "fatal: update $a: unexpected end of input when reading <oldvalue >" err
1048+ grep "fatal: update $a: unexpected end of input when reading <old-oid >" err
10491049'
10501050
10511051test_expect_success ' stdin -z emits warning with empty new value' '
10521052 git update-ref $a $m &&
10531053 printf $F "update $a" "" "" >stdin &&
10541054 git update-ref -z --stdin <stdin 2>err &&
1055- grep "warning: update $a: missing <newvalue >, treating as zero" err &&
1055+ grep "warning: update $a: missing <new-oid >, treating as zero" err &&
10561056 test_must_fail git rev-parse --verify -q $a
10571057'
10581058
10591059test_expect_success ' stdin -z fails update with no new value' '
10601060 printf $F "update $a" >stdin &&
10611061 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1062- grep "fatal: update $a: unexpected end of input when reading <newvalue >" err
1062+ grep "fatal: update $a: unexpected end of input when reading <new-oid >" err
10631063'
10641064
10651065test_expect_success ' stdin -z fails update with no old value' '
10661066 printf $F "update $a" "$m" >stdin &&
10671067 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1068- grep "fatal: update $a: unexpected end of input when reading <oldvalue >" err
1068+ grep "fatal: update $a: unexpected end of input when reading <old-oid >" err
10691069'
10701070
10711071test_expect_success ' stdin -z fails update with too many arguments' '
@@ -1083,7 +1083,7 @@ test_expect_success 'stdin -z fails delete with no ref' '
10831083test_expect_success ' stdin -z fails delete with no old value' '
10841084 printf $F "delete $a" >stdin &&
10851085 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1086- grep "fatal: delete $a: unexpected end of input when reading <oldvalue >" err
1086+ grep "fatal: delete $a: unexpected end of input when reading <old-oid >" err
10871087'
10881088
10891089test_expect_success ' stdin -z fails delete with too many arguments' '
@@ -1101,7 +1101,7 @@ test_expect_success 'stdin -z fails verify with too many arguments' '
11011101test_expect_success ' stdin -z fails verify with no old value' '
11021102 printf $F "verify $a" >stdin &&
11031103 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1104- grep "fatal: verify $a: unexpected end of input when reading <oldvalue >" err
1104+ grep "fatal: verify $a: unexpected end of input when reading <old-oid >" err
11051105'
11061106
11071107test_expect_success ' stdin -z fails option with unknown name' '
@@ -1160,7 +1160,7 @@ test_expect_success 'stdin -z update ref fails with wrong old value' '
11601160test_expect_success ' stdin -z update ref fails with bad old value' '
11611161 printf $F "update $c" "$m" "does-not-exist" >stdin &&
11621162 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1163- grep "fatal: update $c: invalid <oldvalue >: does-not-exist" err &&
1163+ grep "fatal: update $c: invalid <old-oid >: does-not-exist" err &&
11641164 test_must_fail git rev-parse --verify -q $c
11651165'
11661166
@@ -1178,14 +1178,14 @@ test_expect_success 'stdin -z create ref fails with bad new value' '
11781178 git update-ref -d "$c" &&
11791179 printf $F "create $c" "does-not-exist" >stdin &&
11801180 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1181- grep "fatal: create $c: invalid <newvalue >: does-not-exist" err &&
1181+ grep "fatal: create $c: invalid <new-oid >: does-not-exist" err &&
11821182 test_must_fail git rev-parse --verify -q $c
11831183'
11841184
11851185test_expect_success ' stdin -z create ref fails with empty new value' '
11861186 printf $F "create $c" "" >stdin &&
11871187 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1188- grep "fatal: create $c: missing <newvalue >" err &&
1188+ grep "fatal: create $c: missing <new-oid >" err &&
11891189 test_must_fail git rev-parse --verify -q $c
11901190'
11911191
@@ -1209,7 +1209,7 @@ test_expect_success 'stdin -z delete ref fails with wrong old value' '
12091209test_expect_success ' stdin -z delete ref fails with zero old value' '
12101210 printf $F "delete $a" "$Z" >stdin &&
12111211 test_must_fail git update-ref -z --stdin <stdin 2>err &&
1212- grep "fatal: delete $a: zero <oldvalue >" err &&
1212+ grep "fatal: delete $a: zero <old-oid >" err &&
12131213 git rev-parse $m >expect &&
12141214 git rev-parse $a >actual &&
12151215 test_cmp expect actual
0 commit comments