@@ -622,7 +622,7 @@ test_expect_success 'stdin fails create with no ref' '
622
622
test_expect_success ' stdin fails create with no new value' '
623
623
echo "create $a" >stdin &&
624
624
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
626
626
'
627
627
628
628
test_expect_success ' stdin fails create with too many arguments' '
@@ -640,7 +640,7 @@ test_expect_success 'stdin fails update with no ref' '
640
640
test_expect_success ' stdin fails update with no new value' '
641
641
echo "update $a" >stdin &&
642
642
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
644
644
'
645
645
646
646
test_expect_success ' stdin fails update with too many arguments' '
@@ -765,21 +765,21 @@ test_expect_success 'stdin update ref fails with wrong old value' '
765
765
test_expect_success ' stdin update ref fails with bad old value' '
766
766
echo "update $c $m does-not-exist" >stdin &&
767
767
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 &&
769
769
test_must_fail git rev-parse --verify -q $c
770
770
'
771
771
772
772
test_expect_success ' stdin create ref fails with bad new value' '
773
773
echo "create $c does-not-exist" >stdin &&
774
774
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 &&
776
776
test_must_fail git rev-parse --verify -q $c
777
777
'
778
778
779
779
test_expect_success ' stdin create ref fails with zero new value' '
780
780
echo "create $c " >stdin &&
781
781
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 &&
783
783
test_must_fail git rev-parse --verify -q $c
784
784
'
785
785
@@ -803,7 +803,7 @@ test_expect_success 'stdin delete ref fails with wrong old value' '
803
803
test_expect_success ' stdin delete ref fails with zero old value' '
804
804
echo "delete $a " >stdin &&
805
805
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 &&
807
807
git rev-parse $m >expect &&
808
808
git rev-parse $a >actual &&
809
809
test_cmp expect actual
@@ -1027,7 +1027,7 @@ test_expect_success 'stdin -z fails create with no ref' '
1027
1027
test_expect_success ' stdin -z fails create with no new value' '
1028
1028
printf $F "create $a" >stdin &&
1029
1029
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
1031
1031
'
1032
1032
1033
1033
test_expect_success ' stdin -z fails create with too many arguments' '
@@ -1045,27 +1045,27 @@ test_expect_success 'stdin -z fails update with no ref' '
1045
1045
test_expect_success ' stdin -z fails update with too few args' '
1046
1046
printf $F "update $a" "$m" >stdin &&
1047
1047
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
1049
1049
'
1050
1050
1051
1051
test_expect_success ' stdin -z emits warning with empty new value' '
1052
1052
git update-ref $a $m &&
1053
1053
printf $F "update $a" "" "" >stdin &&
1054
1054
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 &&
1056
1056
test_must_fail git rev-parse --verify -q $a
1057
1057
'
1058
1058
1059
1059
test_expect_success ' stdin -z fails update with no new value' '
1060
1060
printf $F "update $a" >stdin &&
1061
1061
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
1063
1063
'
1064
1064
1065
1065
test_expect_success ' stdin -z fails update with no old value' '
1066
1066
printf $F "update $a" "$m" >stdin &&
1067
1067
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
1069
1069
'
1070
1070
1071
1071
test_expect_success ' stdin -z fails update with too many arguments' '
@@ -1083,7 +1083,7 @@ test_expect_success 'stdin -z fails delete with no ref' '
1083
1083
test_expect_success ' stdin -z fails delete with no old value' '
1084
1084
printf $F "delete $a" >stdin &&
1085
1085
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
1087
1087
'
1088
1088
1089
1089
test_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' '
1101
1101
test_expect_success ' stdin -z fails verify with no old value' '
1102
1102
printf $F "verify $a" >stdin &&
1103
1103
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
1105
1105
'
1106
1106
1107
1107
test_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' '
1160
1160
test_expect_success ' stdin -z update ref fails with bad old value' '
1161
1161
printf $F "update $c" "$m" "does-not-exist" >stdin &&
1162
1162
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 &&
1164
1164
test_must_fail git rev-parse --verify -q $c
1165
1165
'
1166
1166
@@ -1178,14 +1178,14 @@ test_expect_success 'stdin -z create ref fails with bad new value' '
1178
1178
git update-ref -d "$c" &&
1179
1179
printf $F "create $c" "does-not-exist" >stdin &&
1180
1180
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 &&
1182
1182
test_must_fail git rev-parse --verify -q $c
1183
1183
'
1184
1184
1185
1185
test_expect_success ' stdin -z create ref fails with empty new value' '
1186
1186
printf $F "create $c" "" >stdin &&
1187
1187
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 &&
1189
1189
test_must_fail git rev-parse --verify -q $c
1190
1190
'
1191
1191
@@ -1209,7 +1209,7 @@ test_expect_success 'stdin -z delete ref fails with wrong old value' '
1209
1209
test_expect_success ' stdin -z delete ref fails with zero old value' '
1210
1210
printf $F "delete $a" "$Z" >stdin &&
1211
1211
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 &&
1213
1213
git rev-parse $m >expect &&
1214
1214
git rev-parse $a >actual &&
1215
1215
test_cmp expect actual
0 commit comments