Skip to content

Commit

Permalink
t4006: Windows do not have /dev/zero
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Sixt authored and Junio C Hamano committed May 2, 2012
1 parent 352ca4e commit 9380aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t4006-diff-mode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'
Expand Down

0 comments on commit 9380aed

Please sign in to comment.