summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j.sixt@viscovery.net>2012-05-02 09:36:44 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-05-02 09:46:41 -0700
commit9380aed286df31dcb31fd6ae467b69471c8cf148 (patch)
tree1d32c9adff2cdb17c3cd4c4675bb91931081a7a6
parentdiff --stat: do not run diff on indentical files (diff)
downloadtgif-9380aed286df31dcb31fd6ae467b69471c8cf148.tar.xz
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>
-rwxr-xr-xt/t4006-diff-mode.sh2
1 files changed, 1 insertions, 1 deletions
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
'