1
0
mirror of https://github.com/git/git.git synced 2024-09-21 09:42:22 +02:00

t4006: Windows do not have /dev/zero

We only need to have a file with _some_ binary contents; be nice to
our Windows friends and avoid using /dev/zero

Signed-off-by: Johannes Sixt <j.sixt@viscovery.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Sixt 2012-05-02 09:36:44 +02:00 committed by Junio C Hamano
parent 352ca4e105
commit 9380aed286

View File

@ -27,7 +27,7 @@ test_expect_success 'chmod' '
test_expect_success 'prepare binary file' '
git commit -m rezrov &&
dd if=/dev/zero of=binbin bs=1024 count=1 &&
printf "\00\01\02\03\04\05\06" >binbin &&
git add binbin &&
git commit -m binbin
'