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
@ -310,7 +310,7 @@ test_expect_success 'exercise strftime with odd fields' '
|
||||
echo >expected &&
|
||||
git for-each-ref --format="%(authordate:format:)" refs/heads >actual &&
|
||||
test_cmp expected actual &&
|
||||
long="long format -- $_z40$_z40$_z40$_z40$_z40$_z40$_z40" &&
|
||||
long="long format -- $ZERO_OID$ZERO_OID$ZERO_OID$ZERO_OID$ZERO_OID$ZERO_OID$ZERO_OID" &&
|
||||
echo $long >expected &&
|
||||
git for-each-ref --format="%(authordate:format:$long)" refs/heads >actual &&
|
||||
test_cmp expected actual
|
||||
|
Reference in New Issue
Block a user