aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j.sixt@viscovery.net>2012-05-02 09:36:44 +0200
committerJunio C Hamano <gitster@pobox.com>2012-05-02 09:46:41 -0700
commit9380aed286df31dcb31fd6ae467b69471c8cf148 (patch)
tree1d32c9adff2cdb17c3cd4c4675bb91931081a7a6
parent352ca4e105e6fb37cad97b80f2640d28b133ca9d (diff)
downloadgit-9380aed286df31dcb31fd6ae467b69471c8cf148.tar.gz
git-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 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
'