t: switch $_z40 to $ZERO_OID
Switch all uses of $_z40 to $ZERO_OID so that they work correctly with larger hashes. This commit was created by using the following sed command to modify all files in the t directory except t/test-lib.sh: sed -i 's/\$_z40/$ZERO_OID/g' Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
198857bf7e
commit
8125a58b91
@ -59,12 +59,12 @@ test_expect_success 'create trees with duplicate entries' '
|
||||
|
||||
test_expect_success 'diff-tree between trees' '
|
||||
{
|
||||
printf ":000000 100644 $_z40 $blob_two A\touter/inner\n" &&
|
||||
printf ":000000 100644 $_z40 $blob_two A\touter/inner\n" &&
|
||||
printf ":000000 100644 $_z40 $blob_two A\touter/inner\n" &&
|
||||
printf ":100644 000000 $blob_two $_z40 D\touter/inner\n" &&
|
||||
printf ":100644 000000 $blob_two $_z40 D\touter/inner\n" &&
|
||||
printf ":100644 000000 $blob_two $_z40 D\touter/inner\n"
|
||||
printf ":000000 100644 $ZERO_OID $blob_two A\touter/inner\n" &&
|
||||
printf ":000000 100644 $ZERO_OID $blob_two A\touter/inner\n" &&
|
||||
printf ":000000 100644 $ZERO_OID $blob_two A\touter/inner\n" &&
|
||||
printf ":100644 000000 $blob_two $ZERO_OID D\touter/inner\n" &&
|
||||
printf ":100644 000000 $blob_two $ZERO_OID D\touter/inner\n" &&
|
||||
printf ":100644 000000 $blob_two $ZERO_OID D\touter/inner\n"
|
||||
} >expect &&
|
||||
git diff-tree -r --no-abbrev one two >actual &&
|
||||
test_cmp expect actual
|
||||
|
Reference in New Issue
Block a user