From 9380aed286df31dcb31fd6ae467b69471c8cf148 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Wed, 2 May 2012 09:36:44 +0200 Subject: [PATCH] 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 --- t/t4006-diff-mode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t4006-diff-mode.sh b/t/t4006-diff-mode.sh index 693bfc4a52..7a3e1f9a24 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 ' -- 2.11.4.GIT