From: Junio C Hamano Date: Sun, 9 Nov 2008 21:11:06 +0000 (-0800) Subject: t5303: fix printf format string for portability X-Git-Tag: v1.6.1-rc1~55^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a2d2c478f325690e1575e14e7d310fd7435d83be;p=git.git t5303: fix printf format string for portability printf "\x01" is bad; write printf "\001" for portability. Testing with dash is a good way to find this kind of POSIX.1 violation breakages. Signed-off-by: Junio C Hamano --- diff --git a/t/t5303-pack-corruption-resilience.sh b/t/t5303-pack-corruption-resilience.sh index f471eadb9..d4e30fc43 100755 --- a/t/t5303-pack-corruption-resilience.sh +++ b/t/t5303-pack-corruption-resilience.sh @@ -234,7 +234,7 @@ test_expect_success \ 'corruption #1 in delta base reference of first delta (OBJ_OFS_DELTA)' \ 'create_new_pack --delta-base-offset && git prune-packed && - tr "\000" "\001" /dev/null && test_must_fail git cat-file blob $blob_2 > /dev/null && test_must_fail git cat-file blob $blob_3 > /dev/null'