@matheusbsbs / matheus-bagliano / commits / 8c1f6f6c57
Fork 0

t5303: work around printf breakage in dash

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Nov 9, 2008 at 13:08 UTC 8c1f6f6c5797d1a3fa9ec9d38ae30b4f19e70a3c
1 file changed +1 -1
t/t5303-pack-corruption-resilience.sh
+1 -1
@@ -234,7 +234,7 @@ test_expect_success \
234 'corruption #1 in delta base reference of first delta (OBJ_OFS_DELTA)' \
235 'create_new_pack --delta-base-offset &&
236 git prune-packed &&
237 - printf "\x01" | do_corrupt_object $blob_2 2 &&
237 + tr "\000" "\001" </dev/zero | do_corrupt_object $blob_2 2 &&
238 git cat-file blob $blob_1 > /dev/null &&
239 test_must_fail git cat-file blob $blob_2 > /dev/null &&
240 test_must_fail git cat-file blob $blob_3 > /dev/null'