From: Johannes Sixt Date: Wed, 2 May 2012 07:36:44 +0000 (+0200) Subject: t4006: Windows do not have /dev/zero X-Git-Tag: v1.7.11-rc0~53^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9380aed286df31dcb31fd6ae467b69471c8cf148;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t4006-diff-mode.sh b/t/t4006-diff-mode.sh index 693bfc4a5..7a3e1f9a2 100755 --- a/t/t4006-diff-mode.sh +++ b/t/t4006-diff-mode.sh @@ -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 '