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>
Johannes Sixt committed
May 2, 2012 at 09:36 UTC
9380aed286df31dcb31fd6ae467b69471c8cf148
1 file changed
+1
-1
t/t4006-diff-mode.sh
+1
-1
@@ -27,7 +27,7 @@ test_expect_success 'chmod' '
27
28
test_expect_success 'prepare binary file' '
29
git commit -m rezrov &&
30
- dd if=/dev/zero of=binbin bs=1024 count=1 &&
30
+ printf "\00\01\02\03\04\05\06" >binbin &&
31
git add binbin &&
32
git commit -m binbin
33
'